Spaces:
Running
Running
For database changes
Browse files- core/config.py +1 -1
- core/database.py +1 -1
core/config.py
CHANGED
@@ -12,7 +12,7 @@ class Settings(BaseSettings):
|
|
12 |
DATABASE_PASSWORD: str = os.getenv("PG_PASSWORD", "4fLiupkCsN5E")
|
13 |
DATABASE_HOST: str = os.getenv("PG_HOST", "ep-fancy-glade-a57hqsn3-pooler.us-east-2.aws.neon.tech")
|
14 |
DATABASE_PORT: int = os.getenv("PG_PORT", 5432)
|
15 |
-
DATABASE_NAME: str = os.getenv("PG_DATABASE", "
|
16 |
JWT_SECRET_KEY: str = os.getenv("JWT_SECRET", "EjQFIgOWHqrzjZc23CfcY6RWi2F2yUMr67DRJlpkjSU")
|
17 |
|
18 |
# JWT settings
|
|
|
12 |
DATABASE_PASSWORD: str = os.getenv("PG_PASSWORD", "4fLiupkCsN5E")
|
13 |
DATABASE_HOST: str = os.getenv("PG_HOST", "ep-fancy-glade-a57hqsn3-pooler.us-east-2.aws.neon.tech")
|
14 |
DATABASE_PORT: int = os.getenv("PG_PORT", 5432)
|
15 |
+
DATABASE_NAME: str = os.getenv("PG_DATABASE", "feastdb")
|
16 |
JWT_SECRET_KEY: str = os.getenv("JWT_SECRET", "EjQFIgOWHqrzjZc23CfcY6RWi2F2yUMr67DRJlpkjSU")
|
17 |
|
18 |
# JWT settings
|
core/database.py
CHANGED
@@ -4,7 +4,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
|
4 |
from sqlalchemy.orm import sessionmaker
|
5 |
from core.config import get_settings
|
6 |
|
7 |
-
DATABASE_URL = "postgresql://snapfeast_db_owner:4fLiupkCsN5E@ep-fancy-glade-a57hqsn3-pooler.us-east-2.aws.neon.tech/
|
8 |
|
9 |
engine = create_engine(
|
10 |
DATABASE_URL,
|
|
|
4 |
from sqlalchemy.orm import sessionmaker
|
5 |
from core.config import get_settings
|
6 |
|
7 |
+
DATABASE_URL = "postgresql://snapfeast_db_owner:4fLiupkCsN5E@ep-fancy-glade-a57hqsn3-pooler.us-east-2.aws.neon.tech/feastdb?sslmode=require"
|
8 |
|
9 |
engine = create_engine(
|
10 |
DATABASE_URL,
|