db/migrations: ensure to drop parentid from posts table (#21493)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b62ee905ae
Коммит
c5f4882f0a
1
db/migrations/postgres/000095_remove_posts_parentid.down.sql
Обычный файл
1
db/migrations/postgres/000095_remove_posts_parentid.down.sql
Обычный файл
@@ -0,0 +1 @@
|
||||
-- Intentionally left blank as forward migration is not reversible.
|
||||
4
db/migrations/postgres/000095_remove_posts_parentid.up.sql
Обычный файл
4
db/migrations/postgres/000095_remove_posts_parentid.up.sql
Обычный файл
@@ -0,0 +1,4 @@
|
||||
-- While upgrading from 5.x to 6.x with manual queries, there is a chance that this
|
||||
-- migration is skipped. In that case, we need to make sure that the column is dropped.
|
||||
|
||||
ALTER TABLE posts DROP COLUMN IF EXISTS parentid;
|
||||
Ссылка в новой задаче
Block a user