Skip to content

Commit

Permalink
DB changes to root node
Browse files Browse the repository at this point in the history
  • Loading branch information
gitorko committed Jan 20, 2016
1 parent 3c20e63 commit bb61a27
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Binary file modified db/excord-datamodel.mwb
Binary file not shown.
1 change: 0 additions & 1 deletion src/main/resources/db/migration/V1__Core.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ CREATE TABLE IF NOT EXISTS `excord`.`ec_testfolder` (
`name` VARCHAR(90) NOT NULL ,
`parent_id` BIGINT(20) NULL ,
PRIMARY KEY (`id`) ,
UNIQUE INDEX `testfolder_uq1` (`name` ASC, `parent_id` ASC) ,
INDEX `testfolder_idx1` (`name` ASC) ,
INDEX `testfolder_idx2` (`parent_id` ASC) ,
CONSTRAINT `testfolder_fk1`
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/db/migration/V2__Seed.sql
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
INSERT into `excord`.`ec_testfolder` (`id`,`name`,`parent_id`) values (1,"root",null);
INSERT into `excord`.`ec_testfolder` (`id`,`name`,`parent_id`) values (2,"trash",null);
1 change: 1 addition & 0 deletions src/main/resources/db/migration/V5__ChangeSet3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ALTER TABLE `excord`.`ec_testplan` ADD COLUMN `slug` VARCHAR(45) NULL DEFAULT NU
ALTER TABLE `excord`.`ec_testfolder` ADD COLUMN `slug` VARCHAR(45) NULL DEFAULT NULL;

update `excord`.`ec_testfolder` set `slug` = 'root-testfolder-slug' where id = 1;
update `excord`.`ec_testfolder` set `slug` = 'trash-testfolder-slug' where id = 2;
update `excord`.`ec_requirement` set `slug` = 'root-requirement-slug' where id = 1;

ALTER TABLE `excord`.`ec_history` PARTITION BY LIST(MOD(YEAR(`change_date`),10))
Expand Down

0 comments on commit bb61a27

Please sign in to comment.