migrate bst_date to local_date

This commit is contained in:
stvnrlly
2022-11-21 11:49:59 -05:00
parent 99de747a36
commit 9e7ee1c0f8
39 changed files with 315 additions and 315 deletions

View File

@@ -15,16 +15,16 @@ down_revision = '0348_migrate_broadcast_settings'
def upgrade():
op.create_table('ft_processing_time',
sa.Column('bst_date', sa.Date(), nullable=False),
sa.Column('local_date', sa.Date(), nullable=False),
sa.Column('messages_total', sa.Integer(), nullable=False),
sa.Column('messages_within_10_secs', sa.Integer(), nullable=False),
sa.Column('created_at', sa.DateTime(), nullable=False),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.PrimaryKeyConstraint('bst_date')
sa.PrimaryKeyConstraint('local_date')
)
op.create_index(op.f('ix_ft_processing_time_bst_date'), 'ft_processing_time', ['bst_date'], unique=False)
op.create_index(op.f('ix_ft_processing_time_local_date'), 'ft_processing_time', ['local_date'], unique=False)
def downgrade():
op.drop_index(op.f('ix_ft_processing_time_bst_date'), table_name='ft_processing_time')
op.drop_index(op.f('ix_ft_processing_time_local_date'), table_name='ft_processing_time')
op.drop_table('ft_processing_time')