Skip to content

Commit 970af56

Browse files
committed
Switch database to MySQL and update email config
Changed Prisma datasource provider from SQLite to MySQL and updated DATABASE_URL in environment files. Also set GMAIL_FROM and TEST_EMAIL_TO to arvincia@sparrow-group.com for all environments.
1 parent f6ea466 commit 970af56

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

client/prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generator client {
66
}
77

88
datasource db {
9-
provider = "sqlite"
9+
provider = "mysql"
1010
url = env("DATABASE_URL")
1111
}
1212

production_configs/.env

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Local development environment (SQLite)
2-
DATABASE_URL="file:./prisma/dev.db"
2+
# DATABASE_URL="file:./prisma/dev.db"
3+
DATABASE_URL="mysql://wedding_user:W3dd1ng%40ArvinIncia2025Secure@localhost:3306/wedding_db"
4+
35
NEXTAUTH_SECRET="dev-secret-change-me"
46
NEXTAUTH_URL="http://localhost:3000"
57
GMAIL_USER="codestromhub@gmail.com"
68
GMAIL_APP_PASSWORD="rfmltjgaqdtzqhpv"
79
# Optional custom From display (falls back to `Wedding <GMAIL_USER>`)
8-
GMAIL_FROM=""
9-
TEST_EMAIL_TO="codestromhub@gmail.com"
10+
GMAIL_FROM="arvincia@sparrow-group.com"
11+
TEST_EMAIL_TO="arvincia@sparrow-group.com"
1012
CLOUDINARY_CLOUD_NAME=""
1113
CLOUDINARY_API_KEY=""
1214
CLOUDINARY_API_SECRET=""

production_configs/.env.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ NEXTAUTH_URL="https://arvinwedsincia.com"
99
GMAIL_USER="codestromhub@gmail.com"
1010
GMAIL_APP_PASSWORD="rfmltjgaqdtzqhpv"
1111
# Optional custom From display (falls back to `Wedding <GMAIL_USER>`)
12-
GMAIL_FROM=""
13-
TEST_EMAIL_TO="codestromhub@gmail.com"
12+
GMAIL_FROM="arvincia@sparrow-group.com"
13+
TEST_EMAIL_TO="arvincia@sparrow-group.com"
1414

1515
# Cloudinary (for media uploads) - Using placeholders for build
1616
CLOUDINARY_CLOUD_NAME="placeholder_cloud"

production_configs/.env.local.example

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# Copy to .env.local and adjust as needed
33

44
# SQLite file in prisma/dev.db (already in repo)
5-
DATABASE_URL="file:./prisma/dev.db"
5+
# DATABASE_URL="file:./prisma/dev.db"
6+
DATABASE_URL="mysql://wedding_user:W3dd1ng%40ArvinIncia2025Secure@localhost:3306/wedding_db"
7+
68

79
# NextAuth
810
NEXTAUTH_SECRET="dev-secret-change-me"
@@ -11,8 +13,8 @@ NEXTAUTH_URL="http://localhost:3000"
1113
GMAIL_USER="codestromhub@gmail.com"
1214
GMAIL_APP_PASSWORD="rfmltjgaqdtzqhpv"
1315
# Optional custom From display (falls back to `Wedding <GMAIL_USER>`)
14-
GMAIL_FROM=""
15-
TEST_EMAIL_TO="codestromhub@gmail.com"
16+
GMAIL_FROM="arvincia@sparrow-group.com"
17+
TEST_EMAIL_TO="arvincia@sparrow-group.com"
1618

1719
# Cloudinary (optional for dev; gallery works with local images via /api/media/static)
1820
CLOUDINARY_CLOUD_NAME=""

production_configs/.env.production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ NEXTAUTH_URL="https://arvinwedsincia.com"
99
GMAIL_USER="codestromhub@gmail.com"
1010
GMAIL_APP_PASSWORD="rfmltjgaqdtzqhpv"
1111
# Optional custom From display (falls back to `Wedding <GMAIL_USER>`)
12-
GMAIL_FROM=""
13-
TEST_EMAIL_TO="codestromhub@gmail.com"
12+
GMAIL_FROM="arvincia@sparrow-group.com"
13+
TEST_EMAIL_TO="arvincia@sparrow-group.com"
1414

1515
# Cloudinary (for media uploads) - Using placeholders for build
1616
CLOUDINARY_CLOUD_NAME="placeholder_cloud"

0 commit comments

Comments
 (0)