Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the length for the columns [#1102]
* Expanded Credits.{Name, Role} to 255 bytes. * Expanded Cmics.{Publisher,Series} to 255 bytes. Also fixed some tech debt to allow several columns to accept UTF8 encoded values that are 3-bytes long.
- Loading branch information
Showing
4 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
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
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
41 changes: 41 additions & 0 deletions
41
...xed-model/src/main/resources/db/migrations/0.11.0/012_1102_expand_credits_name_column.xml
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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> | ||
<changeSet id="012_1102_expand_credits_name_column.xml" | ||
author="mcpierce"> | ||
|
||
<modifyDataType tableName="Credits" | ||
columnName="Name" | ||
newDataType="varchar(255)"/> | ||
<modifyDataType tableName="Credits" | ||
columnName="Role" | ||
newDataType="varchar(255)"/> | ||
<modifyDataType tableName="Comics" | ||
columnName="Publisher" | ||
newDataType="varchar(255)"/> | ||
<modifyDataType tableName="Comics" | ||
columnName="Series" | ||
newDataType="varchar(255)"/> | ||
|
||
<!-- tech debt - MySQL encodings --> | ||
<sql dbms="mysql"> | ||
ALTER TABLE ComicFileDescriptors MODIFY COLUMN Filename varchar (1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL; | ||
ALTER TABLE Comics MODIFY COLUMN Filename varchar (1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL; | ||
ALTER TABLE Comics MODIFY COLUMN Publisher varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE Comics MODIFY COLUMN Series varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE Comics MODIFY COLUMN Title longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE Comics MODIFY COLUMN Notes longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci; | ||
ALTER TABLE Comics MODIFY COLUMN Description longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci; | ||
ALTER TABLE Credits MODIFY COLUMN Name varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE CharacterTags MODIFY COLUMN Name varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE LocationTags MODIFY COLUMN Name varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE StoryTags MODIFY COLUMN Name varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE TeamTags MODIFY COLUMN Name varchar (255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL; | ||
ALTER TABLE WebAuditLogEntries MODIFY COLUMN RequestContent longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci; | ||
ALTER TABLE WebAuditLogEntries MODIFY COLUMN ResponseContent longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci; | ||
</sql> | ||
|
||
</changeSet> | ||
</databaseChangeLog> |
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