diff --git a/src/main/resources/db/migration/V17__alter_alert_type.sql b/src/main/resources/db/migration/V17__alter_alert_type.sql new file mode 100644 index 0000000..fc3a9e5 --- /dev/null +++ b/src/main/resources/db/migration/V17__alter_alert_type.sql @@ -0,0 +1,2 @@ +alter table alert drop column type; +alter table alert add column type enum('BEFORE_MEETING', 'END_MEETING', 'RECOMMEND_USER') not null; diff --git a/src/test/resources/schema.sql b/src/test/resources/schema.sql index 9149130..dadfea5 100644 --- a/src/test/resources/schema.sql +++ b/src/test/resources/schema.sql @@ -99,7 +99,7 @@ create table if not exists alert( user_id bigint not null, title text not null, `body` text not null, - type enum('BEFORE_MEETING'), + type enum('BEFORE_MEETING', 'END_MEETING', 'RECOMMEND_USER'), created_at datetime not null, updated_at datetime not null, is_read boolean not null,