mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
"""activitypub debug log
|
|
|
|
Revision ID: f032dbdfbd1d
|
|
Revises: cc98a471a1ad
|
|
Create Date: 2023-09-09 20:06:28.257769
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'f032dbdfbd1d'
|
|
down_revision = 'cc98a471a1ad'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('activity_pub_log',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('direction', sa.String(length=3), nullable=True),
|
|
sa.Column('activity_type', sa.String(length=50), nullable=True),
|
|
sa.Column('activity_json', sa.Text(), nullable=True),
|
|
sa.Column('result', sa.String(length=10), nullable=True),
|
|
sa.Column('exception_message', sa.Text(), nullable=True),
|
|
sa.Column('created_at', sa.DateTime(), nullable=True),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('activity_pub_log')
|
|
# ### end Alembic commands ###
|