mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-25 12:24:53 +00:00
Revert back to Postgres database
This commit is contained in:
parent
c68c2954a5
commit
7cdb22984b
3 changed files with 7 additions and 6 deletions
|
@ -6,14 +6,15 @@ from werkzeug.exceptions import HTTPException
|
|||
|
||||
from server.extensions import db, migrate, cache, assets, login_manager
|
||||
from server.models import Users
|
||||
from server.config import MIGRATION_DIR, INSTANCE_DIR
|
||||
from server import views, auth, api
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
app = Flask(__name__, instance_path=INSTANCE_DIR)
|
||||
app.config.from_pyfile("config.py")
|
||||
|
||||
db.init_app(app)
|
||||
migrate.init_app(app, db)
|
||||
migrate.init_app(app, db, directory=MIGRATION_DIR)
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue