mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
10 lines
175 B
MySQL
10 lines
175 B
MySQL
|
ALTER TABLE posts
|
||
|
ALTER COLUMN updated_at DROP NOT NULL;
|
||
|
|
||
|
ALTER TABLE posts
|
||
|
ALTER COLUMN updated_at DROP DEFAULT;
|
||
|
|
||
|
UPDATE posts
|
||
|
SET updated_at = null
|
||
|
WHERE is_parent != true;
|