This commit is contained in:
Timothy Rogers 2024-11-10 16:01:57 -05:00
parent f1da01193b
commit b0a4567169
20 changed files with 1734 additions and 0 deletions

View file

@ -0,0 +1,23 @@
"""Add original_featured_image column
Revision ID: 1234567890ab
Revises:
Create Date: 2023-XX-XX
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1234567890ab'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# Add the new column
op.add_column('asset', sa.Column('original_featured_image', sa.String(200)))
def downgrade():
# Remove the column
op.drop_column('asset', 'original_featured_image')

View file

@ -0,0 +1,32 @@
"""Add license-key column
Revision ID: bea92ecef03b
Revises: 1234567890ab
Create Date: 2024-10-31 12:16:06.022171
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bea92ecef03b'
down_revision = '1234567890ab'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('asset', schema=None) as batch_op:
batch_op.add_column(sa.Column('license_key', sa.String(length=255), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('asset', schema=None) as batch_op:
batch_op.drop_column('license_key')
# ### end Alembic commands ###