db/migrations: ensure to drop parentid from posts table (#21493)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-10-25 16:32:34 +03:00
коммит произвёл GitHub
родитель b62ee905ae
Коммит c5f4882f0a
5 изменённых файлов: 27 добавлений и 0 удалений

Просмотреть файл

@@ -0,0 +1 @@
-- Intentionally left blank as forward migration is not reversible.

Просмотреть файл

@@ -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;