mirror of
https://github.com/simple-login/app.git
synced 2024-11-14 08:01:13 +01:00
32 lines
890 B
Python
32 lines
890 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 5f4a5625da66
|
||
|
Revises: 2c2093c82bc0
|
||
|
Create Date: 2023-04-03 18:30:46.488231
|
||
|
|
||
|
"""
|
||
|
import sqlalchemy_utils
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '5f4a5625da66'
|
||
|
down_revision = '2c2093c82bc0'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('public_domain', sa.Column('partner_id', sa.Integer(), nullable=True, sever_default='NULL'))
|
||
|
op.create_foreign_key(None, 'public_domain', 'partner', ['partner_id'], ['id'], ondelete='cascade')
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_constraint(None, 'public_domain', type_='foreignkey')
|
||
|
op.drop_column('public_domain', 'partner_id')
|
||
|
# ### end Alembic commands ###
|