You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.8 KiB
49 lines
1.8 KiB
"""empty message
|
|
|
|
Revision ID: b1465436c340
|
|
Revises: 7866a6e8a75b
|
|
Create Date: 2025-02-21 16:47:25.383937
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import mysql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'b1465436c340'
|
|
down_revision = '7866a6e8a75b'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('log')
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('log',
|
|
sa.Column('id', mysql.INTEGER(), autoincrement=True, nullable=False),
|
|
sa.Column('log_user_agent', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_method', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_quest_path', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_ip', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_params', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_controller', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_controller_action', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('log_controller_id', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('account_id', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('event_name', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('event_content', mysql.TEXT(), nullable=True),
|
|
sa.Column('operator', mysql.VARCHAR(length=120), nullable=True),
|
|
sa.Column('created_at', mysql.DATETIME(), nullable=True),
|
|
sa.Column('updated_at', mysql.DATETIME(), nullable=True),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
mysql_collate='utf8mb4_0900_ai_ci',
|
|
mysql_default_charset='utf8mb4',
|
|
mysql_engine='InnoDB'
|
|
)
|
|
# ### end Alembic commands ###
|