From f127d05a0b6ef58229023d19db6e3211f5b4149d Mon Sep 17 00:00:00 2001 From: Shaun Ford Date: Fri, 1 Jun 2018 11:31:28 -0700 Subject: [PATCH 1/2] Add millis to datetime fields in DB --- ...3.1__make_timestamps_precise_to_millis.sql | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/main/resources/com/nike/cerberus/migration/V1.6.3.1__make_timestamps_precise_to_millis.sql diff --git a/src/main/resources/com/nike/cerberus/migration/V1.6.3.1__make_timestamps_precise_to_millis.sql b/src/main/resources/com/nike/cerberus/migration/V1.6.3.1__make_timestamps_precise_to_millis.sql new file mode 100644 index 000000000..2d12a435b --- /dev/null +++ b/src/main/resources/com/nike/cerberus/migration/V1.6.3.1__make_timestamps_precise_to_millis.sql @@ -0,0 +1,35 @@ +ALTER TABLE SECURE_DATA + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE SECURE_DATA_VERSION + CHANGE ACTION_TS ACTION_TS DATETIME(3) NOT NULL, + CHANGE VERSION_CREATED_TS VERSION_CREATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE SAFE_DEPOSIT_BOX + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE USER_GROUP_PERMISSIONS + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE USER_GROUP + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE AWS_IAM_ROLE_PERMISSIONS + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE AWS_IAM_ROLE + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE CATEGORY + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; + +ALTER TABLE ROLE + CHANGE CREATED_TS CREATED_TS DATETIME(3) NOT NULL, + CHANGE LAST_UPDATED_TS LAST_UPDATED_TS DATETIME(3) NOT NULL; \ No newline at end of file From fbe7a645f70a6b86526acfefcb80ef69f69721a9 Mon Sep 17 00:00:00 2001 From: Shaun Ford Date: Mon, 4 Jun 2018 13:50:32 -0700 Subject: [PATCH 2/2] Update gradle version to 3.16.1 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index badc4563b..e7bb9278c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,6 +14,6 @@ # limitations under the License. # -version=3.16.0 +version=3.16.1 groupId=com.nike.cerberus artifactId=cms