32 lines
738 B
Python
32 lines
738 B
Python
"""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 ###
|