From 02a01d29c74ea3fdb08b08ce45250ff083acac80 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Mon, 20 Mar 2023 22:20:50 +0800 Subject: [PATCH] fix/db models --- .../versions/2023_03_19_1509-caf39c6e55fc_in_out_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alembic/versions/2023_03_19_1509-caf39c6e55fc_in_out_models.py b/alembic/versions/2023_03_19_1509-caf39c6e55fc_in_out_models.py index 77dc666..3bb6786 100644 --- a/alembic/versions/2023_03_19_1509-caf39c6e55fc_in_out_models.py +++ b/alembic/versions/2023_03_19_1509-caf39c6e55fc_in_out_models.py @@ -33,7 +33,7 @@ def upgrade() -> None: sa.Column('ap_object', sa.JSON(), nullable=False), sa.Column('activity_object_ap_id', sa.String(), nullable=True), sa.Column('visibility', sa.Enum('PUBLIC', 'UNLISTED', 'FOLLOWERS_ONLY', 'DIRECT', name='visibilityenum'), nullable=False), - sa.Column('undo_id', sa.Integer(), nullable=False), + sa.Column('undo_id', sa.Integer(), nullable=True), sa.Column('is_deleted', sa.Boolean(), nullable=False), sa.Column('relates_to_inbox_object_id', sa.Integer(), nullable=True), sa.Column('relates_to_outbox_object_id', sa.Integer(), nullable=True), @@ -59,7 +59,7 @@ def upgrade() -> None: sa.Column('ap_object', sa.JSON(), nullable=False), sa.Column('activity_object_ap_id', sa.String(), nullable=True), sa.Column('visibility', sa.Enum('PUBLIC', 'UNLISTED', 'FOLLOWERS_ONLY', 'DIRECT', name='visibilityenum'), nullable=False), - sa.Column('undo_id', sa.Integer(), nullable=False), + sa.Column('undo_id', sa.Integer(), nullable=True), sa.Column('is_deleted', sa.Boolean(), nullable=False), sa.Column('likes_count', sa.Integer(), nullable=False), sa.Column('announces_count', sa.Integer(), nullable=False),