Skip to content

Commit 7f1da08

Browse files
committed
Revert "[AMORO-3540] Increase the precision of optimizing_status_start_time from s to ms. (#3542)"
This reverts commit d655d2e. We perfer to not change db in patch version.
1 parent 90c08aa commit 7f1da08

4 files changed

Lines changed: 2 additions & 10 deletions

File tree

amoro-ams/src/main/resources/mysql/ams-mysql-init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ CREATE TABLE `table_runtime`
123123
`last_minor_optimizing_time` timestamp NULL DEFAULT NULL COMMENT 'Latest Minor Optimize time for all partitions',
124124
`last_full_optimizing_time` timestamp NULL DEFAULT NULL COMMENT 'Latest Full Optimize time for all partitions',
125125
`optimizing_status_code` int DEFAULT 700 COMMENT 'Table optimize status code: 100(FULL_OPTIMIZING), 200(MAJOR_OPTIMIZING), 300(MINOR_OPTIMIZING), 400(COMMITTING), 500(PLANING), 600(PENDING), 700(IDLE)',
126-
`optimizing_status_start_time` timestamp(3) default CURRENT_TIMESTAMP(3) COMMENT 'Table optimize status start time',
126+
`optimizing_status_start_time` timestamp default CURRENT_TIMESTAMP COMMENT 'Table optimize status start time',
127127
`optimizing_process_id` bigint(20) NOT NULL COMMENT 'optimizing_procedure UUID',
128128
`optimizer_group` varchar(64) NOT NULL,
129129
`table_config` mediumtext,

amoro-ams/src/main/resources/mysql/upgrade.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@
1515

1616
-- If you have any changes to the AMS database, please record them in this file.
1717
-- We will confirm the corresponding version of these upgrade scripts when releasing.
18-
19-
-- Update the precision from s level to ms.
20-
ALTER TABLE `table_runtime` MODIFY COLUMN `optimizing_status_start_time` TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'Table optimize status start time';

amoro-ams/src/main/resources/postgres/ams-postgres-init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ CREATE TABLE table_runtime
183183
last_minor_optimizing_time TIMESTAMP,
184184
last_full_optimizing_time TIMESTAMP,
185185
optimizing_status_code INT DEFAULT 700,
186-
optimizing_status_start_time TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3),
186+
optimizing_status_start_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
187187
optimizing_process_id BIGINT NOT NULL,
188188
optimizer_group VARCHAR(64) NOT NULL,
189189
table_config TEXT,

amoro-ams/src/main/resources/postgres/upgrade.sql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,3 @@
1515

1616
-- If you have any changes to the AMS database, please record them in this file.
1717
-- We will confirm the corresponding version of these upgrade scripts when releasing.
18-
19-
-- Update the precision from s level to ms.
20-
ALTER TABLE table_runtime
21-
ALTER COLUMN optimizing_status_start_time TYPE TIMESTAMP(3),
22-
ALTER COLUMN optimizing_status_start_time SET DEFAULT CURRENT_TIMESTAMP(3);

0 commit comments

Comments
 (0)