mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 03:23:46 +01:00
36 lines
987 B
Python
36 lines
987 B
Python
"""empty message
|
|
|
|
Revision ID: 51be0401bb85
|
|
Revises: d4262fb15b37
|
|
Create Date: 2021-07-24 00:25:04.706191
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '51be0401bb85'
|
|
down_revision = 'd4262fb15b37'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('package_alias',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('package_id', sa.Integer(), nullable=False),
|
|
sa.Column('author', sa.String(length=50), nullable=False),
|
|
sa.Column('name', sa.String(length=100), nullable=False),
|
|
sa.ForeignKeyConstraint(['package_id'], ['package.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('package_alias')
|
|
# ### end Alembic commands ###
|