Skip to content

Commit

Permalink
fix: Fix broken flyway db.migration V202404152221__create_Mission_mod…
Browse files Browse the repository at this point in the history
…ules_tables.sql (#233)
  • Loading branch information
Kwon770 authored Apr 16, 2024
1 parent 525c153 commit 13689dc
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
CREATE TABLE 'mission'
CREATE TABLE IF NOT EXISTS `mission`
(
'created_at' DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
'updated_at' DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
'content' VARCHAR(255) NOT NULL,
'mission_id' CHAR(26) NOT NULL COMMENT 'UUID',
PRIMARY KEY ('mission_id')
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`content` VARCHAR(255) NOT NULL,
`mission_id` CHAR(26) NOT NULL COMMENT 'UUID',
PRIMARY KEY (`mission_id`)
) DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci comment '미션테이블';

CREATE TABLE 'daily_mission_history'
CREATE TABLE IF NOT EXISTS `daily_mission_history`
(
'date' DATE NOT NULL,
'created_at' DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
'mission_id' CHAR(26) NOT NULL,
FOREIGN KEY 'daily_mission_history_fk1' ('mission_id') REFERENCES 'mission' ('mission_id'),
PRIMARY KEY ('date')
`date` DATE NOT NULL,
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`mission_id` CHAR(26) NOT NULL,
FOREIGN KEY `daily_mission_history_fk1` (`mission_id`) REFERENCES `mission` (`mission_id`),
PRIMARY KEY (`date`)
) DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci comment '일일미션내역테이블';

0 comments on commit 13689dc

Please sign in to comment.