fix(migrations): correct schema reference in service API history migration (#10452)

This commit is contained in:
-LAN- 2024-11-08 17:47:57 +08:00 committed by GitHub
parent 4f1a56f0f0
commit 78a380bcc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ v0_9_0_release_date= '2024-09-29 12:00:00'
def upgrade(): def upgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
sql = f"""UPDATE sql = f"""UPDATE
public.messages messages
SET SET
parent_message_id = '{UUID_NIL}' parent_message_id = '{UUID_NIL}'
WHERE WHERE
@ -37,7 +37,7 @@ WHERE
def downgrade(): def downgrade():
# ### commands auto generated by Alembic - please adjust! ### # ### commands auto generated by Alembic - please adjust! ###
sql = f"""UPDATE sql = f"""UPDATE
public.messages messages
SET SET
parent_message_id = NULL parent_message_id = NULL
WHERE WHERE