|
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade(): |
|
|
def upgrade(): |
|
|
# ### commands auto generated by Alembic - please adjust! ### |
|
|
# ### commands auto generated by Alembic - please adjust! ### |
|
|
|
|
|
op.execute('CREATE EXTENSION IF NOT EXISTS "uuid-ossp";') |
|
|
|
|
|
|
|
|
op.create_table('account_integrates', |
|
|
op.create_table('account_integrates', |
|
|
sa.Column('id', postgresql.UUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False), |
|
|
sa.Column('id', postgresql.UUID(), server_default=sa.text('uuid_generate_v4()'), nullable=False), |
|
|
sa.Column('account_id', postgresql.UUID(), nullable=False), |
|
|
sa.Column('account_id', postgresql.UUID(), nullable=False), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
op.drop_table('accounts') |
|
|
op.drop_table('accounts') |
|
|
op.drop_table('account_integrates') |
|
|
op.drop_table('account_integrates') |
|
|
|
|
|
|
|
|
|
|
|
op.execute('DROP EXTENSION IF EXISTS "uuid-ossp";') |
|
|
# ### end Alembic commands ### |
|
|
# ### end Alembic commands ### |