-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from REAN-Foundation/db_migration
Added db migration script
- Loading branch information
Showing
1 changed file
with
132 additions
and
0 deletions.
There are no files selected for viewing
132 changes: 132 additions & 0 deletions
132
scripts/db_migration/update_tags_description-version_17_10_2023.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
-- AlterTable | ||
ALTER TABLE `asset_action_plans` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_animations` MODIFY `Transcript` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_appointments` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_articles` MODIFY `Summary` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_assessments` MODIFY `Description` text NULL, | ||
MODIFY `Template` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_audio` MODIFY `Transcript` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_biometrics` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_challenges` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_checkups` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_consultations` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_exercises` MODIFY `Description` text NULL, | ||
MODIFY `RecommendedDurationMin` int NULL DEFAULT 15, | ||
MODIFY `Tags` text NULL; | ||
-- AlterTable | ||
ALTER TABLE `asset_goals` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_infographics` MODIFY `Description` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_medications` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_meditations` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_messages` MODIFY `Name` text NOT NULL, | ||
MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1', | ||
MODIFY `TemplateName` text NOT NULL, | ||
MODIFY `TemplateVariables` text NULL, | ||
MODIFY `TemplateButtonIds` text NULL; | ||
-- AlterTable | ||
ALTER TABLE `asset_nutritions` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_physiotherapy` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_priorities` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_reflections` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_reminders` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_video` MODIFY `Transcript` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_web_links` MODIFY `Description` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_web_newsfeeds` MODIFY `Description` text NULL, | ||
MODIFY `Url` text NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `asset_word_power` MODIFY `Description` text NULL, | ||
MODIFY `AdditionalResources` text NOT NULL, | ||
MODIFY `Tags` text NULL, | ||
MODIFY `Version` varchar(128) NULL DEFAULT 'V1'; | ||
-- AlterTable | ||
ALTER TABLE `careplan_activities` MODIFY `AssetId` char(36) NULL; | ||
-- AlterTable | ||
ALTER TABLE `careplans` MODIFY `Description` text NULL, | ||
MODIFY `Tags` text NOT NULL; | ||
-- AlterTable | ||
ALTER TABLE `file_resources` MODIFY `StorageKey` text NULL, | ||
MODIFY `Tags` text NOT NULL; | ||
-- AlterTable | ||
ALTER TABLE `participant_activity_responses` MODIFY `Response` text NOT NULL; | ||
-- AlterTable | ||
ALTER TABLE `selected_action_plans` MODIFY `Description` text NOT NULL, | ||
MODIFY `AdditionalDetails` text NULL; | ||
-- AlterTable | ||
ALTER TABLE `selected_goals` MODIFY `Description` text NOT NULL, | ||
MODIFY `AdditionalDetails` text NULL; | ||
-- AlterTable | ||
ALTER TABLE `selected_priorities` MODIFY `Description` text NOT NULL; |