mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
5 lines
324 B
SQL
5 lines
324 B
SQL
-- 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;
|