From 32ae7bfa284c23a1b155d6932b13d73cee4ccc95 Mon Sep 17 00:00:00 2001 From: Marco Villeneuve Date: Fri, 15 Dec 2023 09:59:05 -0800 Subject: [PATCH] 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);