mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01:00
7f23533c64
* Fix: typo * Limit the name to 100 chars * Fix migration --------- Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
31 lines
868 B
Python
31 lines
868 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))
|
|
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 ###
|