This commit is contained in:
Aaron Kimbre 2022-02-11 21:48:16 -06:00
parent 91e6ed33e7
commit 2e8ce8ea19

View File

@ -1,8 +1,8 @@
"""Add audio_log table """Add audit_log table
Revision ID: f56ee94c179e Revision ID: bd908969d8fe
Revises: aee4c6c24811 Revises: aee4c6c24811
Create Date: 2022-02-11 21:28:29.595665 Create Date: 2022-02-11 21:48:03.798474
""" """
from alembic import op from alembic import op
@ -10,7 +10,7 @@ import sqlalchemy as sa
from sqlalchemy.dialects import mysql from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic. # revision identifiers, used by Alembic.
revision = 'f56ee94c179e' revision = 'bd908969d8fe'
down_revision = 'aee4c6c24811' down_revision = 'aee4c6c24811'
branch_labels = None branch_labels = None
depends_on = None depends_on = None
@ -19,12 +19,12 @@ depends_on = None
def upgrade(): def upgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
op.create_table('audit_logs', op.create_table('audit_logs',
sa.Column('id', mysql.INTEGER(), nullable=False), sa.Column('id', mysql.INTEGER(), nullable=False),
sa.Column('account_id', sa.Integer(), nullable=True), sa.Column('account_id', sa.Integer(), nullable=True),
sa.Column('action', mysql.TEXT(), nullable=True), sa.Column('action', mysql.TEXT(), nullable=True),
sa.Column('date', mysql.TIMESTAMP(), server_default=sa.text('now()'), nullable=False), sa.Column('date', mysql.TIMESTAMP(), server_default=sa.text('now()'), nullable=False),
sa.ForeignKeyConstraint(['account_id'], ['accounts.id'], ondelete='CASCADE'), sa.ForeignKeyConstraint(['account_id'], ['accounts.id'], ondelete='CASCADE'),
sa.PrimaryKeyConstraint('id') sa.PrimaryKeyConstraint('id')
) )
# ### end Alembic commands ### # ### end Alembic commands ###