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 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