From a255c083b332dbd0b0e27edc061c4e55fafab787 Mon Sep 17 00:00:00 2001 From: sohyun-ku Date: Thu, 21 Sep 2023 17:50:40 +0900 Subject: [PATCH 1/2] Update snapshot_nodes table signature type to text --- scavenger-schema/src/main/resources/db/changelog/schema.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scavenger-schema/src/main/resources/db/changelog/schema.sql b/scavenger-schema/src/main/resources/db/changelog/schema.sql index 0aaf5a1d..aa99ee9b 100644 --- a/scavenger-schema/src/main/resources/db/changelog/schema.sql +++ b/scavenger-schema/src/main/resources/db/changelog/schema.sql @@ -181,3 +181,8 @@ CREATE TABLE IF NOT EXISTS `leadership` ( memberId VARCHAR(128) NOT NULL, lastSeenActive TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ) COLLATE = utf8mb4_0900_as_cs; + + +--changeset scavenger:3 + +ALTER TABLE snapshot_nodes MODIFY signature TEXT; From 51ccd12425738493b11b9706a412fdcce621657b Mon Sep 17 00:00:00 2001 From: sohyun-ku Date: Fri, 22 Sep 2023 16:48:55 +0900 Subject: [PATCH 2/2] Modify to seperate into separate file. --- .../src/main/resources/db/changelog/db.changelog-master.yaml | 2 ++ .../src/main/resources/db/changelog/schema-1.1.2.sql | 3 +++ scavenger-schema/src/main/resources/db/changelog/schema.sql | 5 ----- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 scavenger-schema/src/main/resources/db/changelog/schema-1.1.2.sql diff --git a/scavenger-schema/src/main/resources/db/changelog/db.changelog-master.yaml b/scavenger-schema/src/main/resources/db/changelog/db.changelog-master.yaml index 44457d1b..b89e10dc 100644 --- a/scavenger-schema/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/scavenger-schema/src/main/resources/db/changelog/db.changelog-master.yaml @@ -1,6 +1,8 @@ databaseChangeLog: - include: file: db/changelog/schema.sql + - include: + file: db/changelog/schema-1.1.2.sql - include: file: db/changelog/test-data-set.sql context: local diff --git a/scavenger-schema/src/main/resources/db/changelog/schema-1.1.2.sql b/scavenger-schema/src/main/resources/db/changelog/schema-1.1.2.sql new file mode 100644 index 00000000..685f273c --- /dev/null +++ b/scavenger-schema/src/main/resources/db/changelog/schema-1.1.2.sql @@ -0,0 +1,3 @@ +--changeset scavenger:3 + +ALTER TABLE snapshot_nodes MODIFY signature TEXT; diff --git a/scavenger-schema/src/main/resources/db/changelog/schema.sql b/scavenger-schema/src/main/resources/db/changelog/schema.sql index aa99ee9b..0aaf5a1d 100644 --- a/scavenger-schema/src/main/resources/db/changelog/schema.sql +++ b/scavenger-schema/src/main/resources/db/changelog/schema.sql @@ -181,8 +181,3 @@ CREATE TABLE IF NOT EXISTS `leadership` ( memberId VARCHAR(128) NOT NULL, lastSeenActive TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ) COLLATE = utf8mb4_0900_as_cs; - - ---changeset scavenger:3 - -ALTER TABLE snapshot_nodes MODIFY signature TEXT;