mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 13:49:50 -04:00
reformat
This commit is contained in:
@@ -9,18 +9,15 @@ from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = '0344_stubbed_not_nullable'
|
||||
down_revision = '0343_org_billing_details'
|
||||
revision = "0344_stubbed_not_nullable"
|
||||
down_revision = "0343_org_billing_details"
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.execute("UPDATE broadcast_message SET stubbed = False WHERE stubbed is null")
|
||||
op.alter_column(
|
||||
'broadcast_message',
|
||||
'stubbed',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=False
|
||||
"broadcast_message", "stubbed", existing_type=sa.BOOLEAN(), nullable=False
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
@@ -28,9 +25,6 @@ def upgrade():
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column(
|
||||
'broadcast_message',
|
||||
'stubbed',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=True
|
||||
"broadcast_message", "stubbed", existing_type=sa.BOOLEAN(), nullable=True
|
||||
)
|
||||
# ### end Alembic commands ###
|
||||
|
||||
Reference in New Issue
Block a user