Skip to content

Commit 7bc190b

Browse files
fix
1 parent c56e826 commit 7bc190b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

init_db.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
from app import app
33
from models import db
4-
from migrate_db import migrate_database
54

65
def ensure_sqlite_path():
76
uri = app.config.get('SQLALCHEMY_DATABASE_URI')
@@ -23,9 +22,6 @@ def ensure_sqlite_path():
2322
db.create_all()
2423
print("Database initialized successfully!")
2524

26-
# Run migration to add new columns if needed
27-
migrate_database()
28-
2925
if db_file and os.path.exists(db_file):
3026
st = os.stat(db_file)
3127
print(f"Database file created: {db_file} (size {st.st_size} bytes, perms {oct(st.st_mode)[-3:]})")

0 commit comments

Comments
 (0)