From fbfd9227a27b02245f38c5a224ce728849e505e4 Mon Sep 17 00:00:00 2001 From: JaehongDev Date: Tue, 9 Jul 2024 17:05:01 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=9A=8C=EC=9B=90=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=20=EC=88=98=EC=A0=95=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../V3__add_deleted_created_at_updated_at.sql | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/src/main/resources/db/migration/V3__add_deleted_created_at_updated_at.sql b/backend/src/main/resources/db/migration/V3__add_deleted_created_at_updated_at.sql index 9e7335a..355d3cb 100644 --- a/backend/src/main/resources/db/migration/V3__add_deleted_created_at_updated_at.sql +++ b/backend/src/main/resources/db/migration/V3__add_deleted_created_at_updated_at.sql @@ -1,19 +1,18 @@ -ALTER TABLE MEMBERS +ALTER TABLE members ADD COLUMN created_at DATETIME(6); -ALTER TABLE MEMBERS +ALTER TABLE members ADD COLUMN updated_at DATETIME(6); -UPDATE MEMBERS +UPDATE members SET created_at = CURRENT_TIMESTAMP(6), updated_at = CURRENT_TIMESTAMP(6); -ALTER TABLE MEMBERS +ALTER TABLE members MODIFY COLUMN created_at DATETIME(6) NOT NULL; -ALTER TABLE MEMBERS +ALTER TABLE members MODIFY COLUMN updated_at DATETIME(6) NOT NULL; - alter table members add column is_deleted boolean not null default false;