-
Notifications
You must be signed in to change notification settings - Fork 21
[AN-257] Update mysql version to 5.7 #4804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
14a3b85
add allowpublickeyretrival to url, modify liquibase timestamp default…
LizBaldo ada3248
use mysql image and update to 8.4
LizBaldo f1e3eab
Merge branch 'develop' into AN-257-mysql-upgrade-to-8.0
LizBaldo 5c33cea
apply unique constraint before creation of the foreign key
LizBaldo 2f75cc9
this is silly but worth trying
LizBaldo 0569098
try to set the --restrict-fk-on-non-standard-key to OFF
LizBaldo 956aa48
try again
LizBaldo b4e5638
last try
LizBaldo 739544d
add validchecsum for the label table as well
LizBaldo 2db4a05
test backward compatibility with 5.6
LizBaldo 7fb7b59
back to 8.4
LizBaldo 071192a
only update to 5.7 for now
LizBaldo 7f3e7c4
specify default timestamps for persistent disk table
LizBaldo 7607506
add validchecksum fo persistent disk table
LizBaldo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
7 changes: 6 additions & 1 deletion
7
...ute/dsde/workbench/leonardo/liquibase/changesets/20170901_cluster-createdDate-default.xml
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <databaseChangeLog logicalFilePath="leonardo" xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> | ||
| <changeSet logicalFilePath="leonardo" author="kumra" id="cluster-createdDate-default"> | ||
| <validCheckSum>8:c1023fe139609a1cab82cda7caededc0</validCheckSum> | ||
| <comment> | ||
| Mysql 5.7+ cannot add a not null constraint with a default value simultaneously. This changeSet has been modified to reflect that; the | ||
| validCheckSum is the checksum from when the table was not altered, but with addNotNullConstraint and addDefaultValue. | ||
| </comment> | ||
| <sql dbms="mysql">ALTER TABLE CLUSTER | ||
| CHANGE createdDate createdDate TIMESTAMP(6) NOT NULL DEFAULT 0</sql> | ||
| CHANGE createdDate createdDate TIMESTAMP(6) NOT NULL DEFAULT "1970-01-01 00:00:01.000000"</sql> | ||
| </changeSet> | ||
| </databaseChangeLog> |
16 changes: 8 additions & 8 deletions
16
.../dsde/workbench/leonardo/liquibase/changesets/20171011_cluster_destroyedDate_not_null.xml
This file contains hidden or 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 |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <databaseChangeLog logicalFilePath="leonardo" xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> | ||
| <changeSet logicalFilePath="leonardo" author="vkumra" id="cluster_destroyeddate_not_null"> | ||
| <addNotNullConstraint columnDataType="TIMESTAMP(6)" | ||
| columnName="destroyedDate" | ||
| defaultNullValue="1970-01-01 00:00:01.000000" | ||
| tableName="CLUSTER"/> | ||
| <addDefaultValue columnDataType="TIMESTAMP(6)" | ||
| columnName="destroyedDate" | ||
| defaultValue="1970-01-01 00:00:01.000000" | ||
| tableName="CLUSTER"/> | ||
| <validCheckSum>8:29280ede1de44e4c3f2966c6922e9865</validCheckSum> | ||
| <comment> | ||
| Mysql 5.7+ changed default time stamps. This changeSet has been modified to reflect that; the | ||
| validCheckSum is the checksum from when the default was 0. | ||
| </comment> | ||
| <sql> | ||
| ALTER TABLE CLUSTER MODIFY COLUMN destroyedDate TIMESTAMP(6) NOT NULL DEFAULT '1970-01-01 00:00:01.000000'; | ||
| </sql> | ||
| </changeSet> | ||
| </databaseChangeLog> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
7 changes: 6 additions & 1 deletion
7
...nstitute/dsde/workbench/leonardo/liquibase/changesets/20230911_create_app_usage_table.xml
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would love to enable SSL everywhere and disable
allowPublicKeyRetrievalbut that seems like a project for another PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I checked that this is only used for our unit testing at least