mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-24 02:45:59 +00:00
20 lines
436 B
MySQL
20 lines
436 B
MySQL
|
ALTER TABLE local_image
|
||
|
ADD COLUMN pictrs_delete_token text NOT NULL DEFAULT '';
|
||
|
|
||
|
ALTER TABLE local_image
|
||
|
ALTER COLUMN pictrs_delete_token DROP DEFAULT;
|
||
|
|
||
|
ALTER TABLE local_image
|
||
|
ADD COLUMN published_new timestamp with time zone DEFAULT now() NOT NULL;
|
||
|
|
||
|
UPDATE
|
||
|
local_image
|
||
|
SET
|
||
|
published_new = published;
|
||
|
|
||
|
ALTER TABLE local_image
|
||
|
DROP COLUMN published;
|
||
|
|
||
|
ALTER TABLE local_image RENAME published_new TO published;
|
||
|
|