Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: flyway-script v9 #1629

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ CREATE TABLE IF NOT EXISTS department
id bigint auto_increment primary key,
part varchar(50) not null,
term varchar(50) not null
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;

create table if not exists department_member
(
id bigint auto_increment primary key,
member_id bigint not null,
department_id bigint not null,
constraint FK_DEPARTMENT_MEMBER_ON_MEMBERㅇ
foreign key (member_id) references prolog.member (id),
constraint FK_DEPARTMENT_MEMBER_ON_MEMBER
foreign key (member_id) references prolog.member (id),
constraint FK_DEPARTMENT_MEMBER_ON_DEPARTMENT
foreign key (department_id) references prolog.department (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
foreign key (department_id) references prolog.department (id)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;

insert into department(id, part, term) values (1, '백엔드', '3기');
insert into department(id, part, term) values (2, '프론트엔드', '3기');
insert into department(id, part, term) values (3, '백엔드', '4기');
insert into department(id, part, term) values (4, '프론트엔드', '4기');
insert into department(id, part, term) values (5, '백엔드', '5기');
insert into department(id, part, term) values (6, '프론트엔드', '5기');
insert into department(id, part, term) values (7, '안드로이드', '5기');
insert into department(id, part, term) values (1, 'BACKEND', 'THIRD');
insert into department(id, part, term) values (2, 'FRONTEND', 'THIRD');
insert into department(id, part, term) values (3, 'BACKEND', 'FOURTH');
insert into department(id, part, term) values (4, 'FRONTEND', 'FOURTH');
insert into department(id, part, term) values (5, 'BACKEND', 'FIFTH');
insert into department(id, part, term) values (6, 'FRONTEND', 'FIFTH');
insert into department(id, part, term) values (7, 'ANDROID', 'FIFTH');

insert into department_member (id, member_id, department_id)
(select id, member_id, group_id from group_member);
Loading