From d21bc5eff9703f9a635699faa3823bb66eba3d7e Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 13 Nov 2024 10:57:33 +0000 Subject: [PATCH] Changes to SQL schema --- .../db/migration/V71__Add_branch_source.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/src/main/resources/db/migration/V71__Add_branch_source.sql b/webapp/src/main/resources/db/migration/V71__Add_branch_source.sql index d2d3c565d9..fced4bfdf7 100644 --- a/webapp/src/main/resources/db/migration/V71__Add_branch_source.sql +++ b/webapp/src/main/resources/db/migration/V71__Add_branch_source.sql @@ -1,7 +1,7 @@ CREATE TABLE tm_text_unit_to_branch( - id bigint AUTO_INCREMENT PRIMARY KEY, - tm_text_unit_id bigint NOT NULL, - branch_id bigint NOT NULL + id BIGINT AUTO_INCREMENT PRIMARY KEY, + tm_text_unit_id BIGINT NOT NULL, + branch_id BIGINT NOT NULL ); ALTER TABLE tm_text_unit_to_branch @@ -13,9 +13,9 @@ ADD CONSTRAINT FK__TM_TEXT_UNIT_TO_BRANCH__BRANCH_ID FOREIGN KEY (branch_id) REF create index I__TEXT_UNIT_TO_BRANCH__TEXT_UNIT_ID on tm_text_unit_to_branch (tm_text_unit_id); CREATE TABLE branch_source( - id bigint AUTO_INCREMENT PRIMARY KEY, - branch_id bigint NOT NULL, - url VARCHAR(300) NOT NULL + id BIGINT AUTO_INCREMENT PRIMARY KEY, + branch_id BIGINT NOT NULL, + url VARCHAR(255) NOT NULL ); ALTER TABLE branch_source