- Introduction of Partner Admin role in combination with 'Management Partner' type.
This commit is contained in:
31
migrations/public/versions/9ac89fc67661_sequence_changes.py
Normal file
31
migrations/public/versions/9ac89fc67661_sequence_changes.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""Sequence changes
|
||||
|
||||
Revision ID: 9ac89fc67661
|
||||
Revises: 867deef0888b
|
||||
Create Date: 2025-04-03 13:26:55.480553
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '9ac89fc67661'
|
||||
down_revision = '867deef0888b'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
tables = ['role', 'tenant', 'user', 'partner', 'tenant_domain', 'tenant_project']
|
||||
for table in tables:
|
||||
op.execute(f"ALTER SEQUENCE public.{table}_id_seq RESTART WITH 1000;")
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user