We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c56e826 commit 7bc190bCopy full SHA for 7bc190b
1 file changed
init_db.py
@@ -1,7 +1,6 @@
1
import os
2
from app import app
3
from models import db
4
-from migrate_db import migrate_database
5
6
def ensure_sqlite_path():
7
uri = app.config.get('SQLALCHEMY_DATABASE_URI')
@@ -23,9 +22,6 @@ def ensure_sqlite_path():
23
22
db.create_all()
24
print("Database initialized successfully!")
25
26
- # Run migration to add new columns if needed
27
- migrate_database()
28
-
29
if db_file and os.path.exists(db_file):
30
st = os.stat(db_file)
31
print(f"Database file created: {db_file} (size {st.st_size} bytes, perms {oct(st.st_mode)[-3:]})")
0 commit comments