MM-43045: minimize JOIN Posts (#19934)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
348602cf00
Коммит
5bd223c836
1
db/migrations/postgres/000081_threads_deleteat.down.sql
Обычный файл
1
db/migrations/postgres/000081_threads_deleteat.down.sql
Обычный файл
@@ -0,0 +1 @@
|
||||
ALTER TABLE threads DROP COLUMN IF EXISTS deleteat;
|
||||
2
db/migrations/postgres/000081_threads_deleteat.up.sql
Обычный файл
2
db/migrations/postgres/000081_threads_deleteat.up.sql
Обычный файл
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE threads ADD COLUMN IF NOT EXISTS deleteat bigint;
|
||||
UPDATE threads SET deleteat = posts.deleteat FROM posts WHERE threads.deleteat IS NULL AND posts.id = threads.postid;
|
||||
Ссылка в новой задаче
Block a user