fix: actually call migration function (was only importing)
Bug: db_init.py was importing migrate_to_postgres but not calling main(). Result: Migration appeared successful but no data was migrated (0 users). Fix: Import and call migrate_to_postgres.main() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
39a7b1be78
commit
d15ec056b4
|
|
@ -119,8 +119,8 @@ if __name__ == "__main__":
|
||||||
print(" Starting automatic migration...")
|
print(" Starting automatic migration...")
|
||||||
# Import and run migration
|
# Import and run migration
|
||||||
try:
|
try:
|
||||||
import migrate_to_postgres
|
from migrate_to_postgres import main as migrate
|
||||||
print("✓ Migration completed")
|
migrate()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"✗ Migration failed: {e}")
|
print(f"✗ Migration failed: {e}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user