Skip to content

Commit

Permalink
chore: 회원 테이블 수정 스크립트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHongDev committed Jul 9, 2024
1 parent 83cf9a0 commit fbfd922
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit fbfd922

Please sign in to comment.