"""add cta and link Revision ID: d51f7c28e4eb Revises: e80bbcc6c02b Create Date: 2024-09-18 15:09:48.047566 """ from alembic import op import sqlalchemy as sa from tidb_vector.sqlalchemy import VectorType from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'd51f7c28e4eb' down_revision = 'e80bbcc6c02b' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('cta', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('description', mysql.LONGTEXT(), nullable=True), sa.Column('html', mysql.LONGTEXT(), nullable=True), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.PrimaryKeyConstraint('id') ) op.create_table('link', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('linking_word', sa.String(length=128), nullable=True), sa.Column('url', mysql.LONGTEXT(), nullable=True), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('linking_word') ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('link') op.drop_table('cta') # ### end Alembic commands ###