Skip to content

Commit

Permalink
Fix migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Jun 25, 2024
1 parent d17990a commit 20b6f65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/migrations/8-add-twin-phone-identity-to-users.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from database import update_table

update_users_sql = """ ALTER TABLE users ADD COLUMN twin_id integer, ADD COLUMN phone text, ADD COLUMN identity_reference text; """
update_users_sql = """ ALTER TABLE users ADD COLUMN twin_id integer;
ALTER TABLE users ADD COLUMN phone text;
ALTER TABLE users ADD COLUMN identity_reference text; """
update_table(update_users_sql)

0 comments on commit 20b6f65

Please sign in to comment.