mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-01 08:28:06 +00:00
Object FlakeIds: also update data_migration_failed_ids table
This commit is contained in:
parent
73cde0aeeb
commit
1776ea1c86
|
@ -15,6 +15,14 @@ defmodule Pleroma.Repo.Migrations.ChangeObjectIdToFlake do
|
|||
add primary key (id)
|
||||
""")
|
||||
|
||||
# Update data_migration_failed_ids
|
||||
execute("""
|
||||
alter table data_migration_failed_ids
|
||||
drop constraint data_migration_failed_ids_pkey cascade,
|
||||
alter column record_id set data type uuid using cast( lpad( to_hex(record_id), 32, '0') as uuid),
|
||||
add primary key (data_migration_id, record_id)
|
||||
""")
|
||||
|
||||
# Update chat message foreign key
|
||||
execute("""
|
||||
alter table chat_message_references
|
||||
|
|
Loading…
Reference in a new issue