mirror of
https://github.com/mattermost/mattermost.git
synced 2026-04-15 14:08:55 -04:00
6 lines
324 B
MySQL
6 lines
324 B
MySQL
|
|
-- Drop any existing DeleteAt column from 000081_threads_deleteat.up.sql
|
||
|
|
ALTER TABLE threads DROP COLUMN IF EXISTS deleteat;
|
||
|
|
|
||
|
|
ALTER TABLE threads ADD COLUMN IF NOT EXISTS threaddeleteat bigint;
|
||
|
|
UPDATE threads SET threaddeleteat = posts.deleteat FROM posts WHERE threads.threaddeleteat IS NULL AND posts.id = threads.postid;
|