From 348fac5e74887570f6b37bbdefd6c485f6fe0d30 Mon Sep 17 00:00:00 2001 From: SodhiA1 <38086281+SodhiA1@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:54:06 -0800 Subject: [PATCH 1/3] Create V1.0.20__INSTITUTE_API.sql --- .../db/migration/V1.0.20__INSTITUTE_API.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql diff --git a/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql b/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql new file mode 100644 index 00000000..de437423 --- /dev/null +++ b/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql @@ -0,0 +1,42 @@ +ALTER TABLE SCHOOL + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL_CONTACT + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL_CONTACT + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL_MOVE + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL_MOVE + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL_HISTORY + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE SCHOOL_HISTORY + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + +ALTER TABLE DISTRICT + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE DISTRICT + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + +ALTER TABLE DISTRICT_CONTACT + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE DISTRICT_CONTACT + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + +ALTER TABLE DISTRICT_HISTORY + ALTER COLUMN CREATE_USER TYPE VARCHAR(255); + +ALTER TABLE DISTRICT_HISTORY + ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); + From 32ae7bfa284c23a1b155d6932b13d73cee4ccc95 Mon Sep 17 00:00:00 2001 From: Marco Villeneuve Date: Fri, 15 Dec 2023 09:59:05 -0800 Subject: [PATCH 2/3] Added more tables. --- .../db/migration/V1.0.20__INSTITUTE_API.sql | 121 ++++++++++++++---- 1 file changed, 97 insertions(+), 24 deletions(-) diff --git a/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql b/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql index de437423..943cedf3 100644 --- a/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql +++ b/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql @@ -1,42 +1,115 @@ -ALTER TABLE SCHOOL - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER TABLE INDEPENDENT_AUTHORITY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); +ALTER TABLE INDEPENDENT_AUTHORITY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL_CONTACT - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER TABLE INDEPENDENT_AUTHORITY_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL_CONTACT - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); +ALTER TABLE INDEPENDENT_AUTHORITY_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL_MOVE - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER TABLE AUTHORITY_ADDRESS +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL_MOVE - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); +ALTER TABLE AUTHORITY_ADDRESS +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL_HISTORY - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER TABLE AUTHORITY_CONTACT +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); -ALTER TABLE SCHOOL_HISTORY - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); +ALTER TABLE AUTHORITY_CONTACT +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE AUTHORITY_CONTACT +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE AUTHORITY_CONTACT +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); ALTER TABLE DISTRICT - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); ALTER TABLE DISTRICT - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE DISTRICT_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE DISTRICT_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE DISTRICT_ADDRESS +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE DISTRICT_ADDRESS +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); ALTER TABLE DISTRICT_CONTACT - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); ALTER TABLE DISTRICT_CONTACT - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); -ALTER TABLE DISTRICT_HISTORY - ALTER COLUMN CREATE_USER TYPE VARCHAR(255); +ALTER TABLE NEIGHBORHOOD_LEARNING +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE NEIGHBORHOOD_LEARNING +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE NEIGHBORHOOD_LEARNING_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE NEIGHBORHOOD_LEARNING_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE NOTE +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE NOTE +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_ADDRESS +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_ADDRESS +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_CONTACT +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_CONTACT +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_GRADE +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_GRADE +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_GRADE_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_GRADE_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_MOVE +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_MOVE +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_HISTORY +ALTER COLUMN CREATE_USER TYPE VARCHAR(100); + +ALTER TABLE SCHOOL_HISTORY +ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); -ALTER TABLE DISTRICT_HISTORY - ALTER COLUMN UPDATE_USER TYPE VARCHAR(255); From cf2e52c236b7a25fc065944facee66bdcf039224 Mon Sep 17 00:00:00 2001 From: SodhiA1 <38086281+SodhiA1@users.noreply.github.com> Date: Fri, 15 Dec 2023 10:12:38 -0800 Subject: [PATCH 3/3] removed duplicate --- .../main/resources/db/migration/V1.0.20__INSTITUTE_API.sql | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql b/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql index 943cedf3..0fc22e8d 100644 --- a/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql +++ b/api/src/main/resources/db/migration/V1.0.20__INSTITUTE_API.sql @@ -22,12 +22,6 @@ ALTER COLUMN CREATE_USER TYPE VARCHAR(100); ALTER TABLE AUTHORITY_CONTACT ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); -ALTER TABLE AUTHORITY_CONTACT -ALTER COLUMN CREATE_USER TYPE VARCHAR(100); - -ALTER TABLE AUTHORITY_CONTACT -ALTER COLUMN UPDATE_USER TYPE VARCHAR(100); - ALTER TABLE DISTRICT ALTER COLUMN CREATE_USER TYPE VARCHAR(100);