From 72a83ce0fa43b09ed17a879a3066f0bf436e27ba Mon Sep 17 00:00:00 2001 From: jadmsaadaot <91914654+jadmsaadaot@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:23:50 -0700 Subject: [PATCH] Fix initialize user status migration file (#2103) * fix migration file * fix migration, change None to Null --- .../versions/f40da1b8f3e0_initialize_user_status.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/met-api/migrations/versions/f40da1b8f3e0_initialize_user_status.py b/met-api/migrations/versions/f40da1b8f3e0_initialize_user_status.py index f8cb1999c..b4a610f77 100644 --- a/met-api/migrations/versions/f40da1b8f3e0_initialize_user_status.py +++ b/met-api/migrations/versions/f40da1b8f3e0_initialize_user_status.py @@ -17,12 +17,12 @@ def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.execute("UPDATE staff_users SET status_id = 1") - op.alter_column('survey', 'is_template', nullable=False, server_default='1') + op.alter_column('staff_users', 'status_id', nullable=False, server_default='1') # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.alter_column('survey', 'is_template', nullable=True, server_default=None) - op.execute("UPDATE staff_users SET status_id = None") + op.alter_column('staff_users', 'status_id', nullable=True, server_default=None) + op.execute("UPDATE staff_users SET status_id = NULL") # ### end Alembic commands ###