Skip to content

Commit

Permalink
Add db migration 7
Browse files Browse the repository at this point in the history
  • Loading branch information
denomelchenko committed May 28, 2024
1 parent 7208730 commit f4e3f81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/db/migration/V7__items_sizes_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
create table if not exists items_sizes(
item_info_id varchar(36),
size_id varchar(36),
is_size_available boolean,
primary key (item_info_id, size_id),
foreign key (item_info_id) references item_info(id),
foreign key (size_id) references size(id)
);

alter table item_info
drop foreign key item_info_ibfk_2,
drop column size_id;

0 comments on commit f4e3f81

Please sign in to comment.