This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-asset-manager/webservice/bam/migrations/versions/52d9e7b917f_project_settings.py

37 lines
1.0 KiB
Python

"""project_settings
Revision ID: 52d9e7b917f
Revises: 4918c57ece7
Create Date: 2014-11-07 11:15:13.057416
"""
# revision identifiers, used by Alembic.
revision = '52d9e7b917f'
down_revision = '4918c57ece7'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.create_table('project_setting',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('project_id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=256), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('value', sa.String(length=100), nullable=False),
sa.Column('data_type', sa.String(length=128), nullable=False),
sa.ForeignKeyConstraint(['project_id'], ['project.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name')
)
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_table('project_setting')
### end Alembic commands ###