@@ -16,69 +16,69 @@ limitations under the License.
1616
1717CREATE TABLE IF NOT EXISTS schema_migrations
1818(
19- ` id` bigint unsigned NOT NULL AUTO_INCREMENT,
20- ` migration_uuid` varchar (64 ) NOT NULL ,
21- ` keyspace` varchar (256 ) NOT NULL ,
22- ` shard` varchar (255 ) NOT NULL ,
23- ` mysql_schema` varchar (128 ) NOT NULL ,
24- ` mysql_table` varchar (128 ) NOT NULL ,
25- ` migration_statement` text NOT NULL ,
26- ` strategy` varchar (128 ) NOT NULL ,
27- ` options` varchar (8192 ) NOT NULL ,
28- ` added_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
29- ` requested_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
30- ` ready_timestamp` timestamp NULL DEFAULT NULL ,
31- ` started_timestamp` timestamp NULL DEFAULT NULL ,
32- ` liveness_timestamp` timestamp NULL DEFAULT NULL ,
33- ` completed_timestamp` timestamp (6 ) NULL DEFAULT NULL ,
34- ` cleanup_timestamp` timestamp NULL DEFAULT NULL ,
35- ` migration_status` varchar (128 ) NOT NULL ,
36- ` log_path` varchar (1024 ) NOT NULL ,
37- ` artifacts` text NOT NULL ,
38- ` retries` int unsigned NOT NULL DEFAULT ' 0' ,
39- ` tablet` varchar (128 ) NOT NULL DEFAULT ' ' ,
40- ` tablet_failure` tinyint unsigned NOT NULL DEFAULT ' 0' ,
41- ` progress` float NOT NULL DEFAULT ' 0' ,
42- ` migration_context` varchar (1024 ) NOT NULL DEFAULT ' ' ,
43- ` ddl_action` varchar (16 ) NOT NULL DEFAULT ' ' ,
44- ` message` text NOT NULL ,
45- ` message_timestamp` timestamp (6 ) NULL DEFAULT NULL ,
46- ` eta_seconds` bigint NOT NULL DEFAULT ' -1' ,
47- ` rows_copied` bigint unsigned NOT NULL DEFAULT ' 0' ,
48- ` vreplication_lag_seconds` bigint unsigned NOT NULL DEFAULT ' 0' ,
49- ` table_rows` bigint NOT NULL DEFAULT ' 0' ,
50- ` added_unique_keys` int unsigned NOT NULL DEFAULT ' 0' ,
51- ` removed_unique_keys` int unsigned NOT NULL DEFAULT ' 0' ,
52- ` log_file` varchar (1024 ) NOT NULL DEFAULT ' ' ,
53- ` retain_artifacts_seconds` bigint NOT NULL DEFAULT ' 0' ,
54- ` postpone_completion` tinyint unsigned NOT NULL DEFAULT ' 0' ,
55- ` removed_unique_key_names` text NOT NULL ,
56- ` dropped_no_default_column_names` text NOT NULL ,
57- ` expanded_column_names` text NOT NULL ,
58- ` revertible_notes` text NOT NULL ,
59- ` allow_concurrent` tinyint unsigned NOT NULL DEFAULT ' 0' ,
60- ` reverted_uuid` varchar (64 ) NOT NULL DEFAULT ' ' ,
61- ` is_view` tinyint unsigned NOT NULL DEFAULT ' 0' ,
62- ` ready_to_complete` tinyint unsigned NOT NULL DEFAULT ' 0' ,
63- ` vitess_liveness_indicator` bigint NOT NULL DEFAULT ' 0' ,
64- ` user_throttle_ratio` float NOT NULL DEFAULT ' 0' ,
65- ` special_plan` text NOT NULL ,
66- ` last_throttled_timestamp` timestamp NULL DEFAULT NULL ,
67- ` component_throttled` tinytext NOT NULL ,
68- ` reason_throttled` text NOT NULL ,
69- ` cancelled_timestamp` timestamp NULL DEFAULT NULL ,
70- ` postpone_launch` tinyint unsigned NOT NULL DEFAULT ' 0' ,
71- ` stage` text NOT NULL ,
72- ` cutover_attempts` int unsigned NOT NULL DEFAULT ' 0' ,
73- ` is_immediate_operation` tinyint unsigned NOT NULL DEFAULT ' 0' ,
74- ` reviewed_timestamp` timestamp NULL DEFAULT NULL ,
75- ` ready_to_complete_timestamp` timestamp NULL DEFAULT NULL ,
76- ` shadow_analyzed_timestamp` timestamp NULL DEFAULT NULL ,
77- ` removed_foreign_key_names` text NOT NULL ,
78- ` last_cutover_attempt_timestamp` timestamp NULL DEFAULT NULL ,
79- ` force_cutover` tinyint unsigned NOT NULL DEFAULT ' 0' ,
80- ` cutover_threshold_seconds` int unsigned NOT NULL DEFAULT ' 0' ,
81- ` dependent_migrations ` text NOT NULL ,
19+ ` id` bigint unsigned NOT NULL AUTO_INCREMENT,
20+ ` migration_uuid` varchar (64 ) NOT NULL ,
21+ ` keyspace` varchar (256 ) NOT NULL ,
22+ ` shard` varchar (255 ) NOT NULL ,
23+ ` mysql_schema` varchar (128 ) NOT NULL ,
24+ ` mysql_table` varchar (128 ) NOT NULL ,
25+ ` migration_statement` text NOT NULL ,
26+ ` strategy` varchar (128 ) NOT NULL ,
27+ ` options` varchar (8192 ) NOT NULL ,
28+ ` added_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
29+ ` requested_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
30+ ` ready_timestamp` timestamp NULL DEFAULT NULL ,
31+ ` started_timestamp` timestamp NULL DEFAULT NULL ,
32+ ` liveness_timestamp` timestamp NULL DEFAULT NULL ,
33+ ` completed_timestamp` timestamp (6 ) NULL DEFAULT NULL ,
34+ ` cleanup_timestamp` timestamp NULL DEFAULT NULL ,
35+ ` migration_status` varchar (128 ) NOT NULL ,
36+ ` log_path` varchar (1024 ) NOT NULL ,
37+ ` artifacts` text NOT NULL ,
38+ ` retries` int unsigned NOT NULL DEFAULT ' 0' ,
39+ ` tablet` varchar (128 ) NOT NULL DEFAULT ' ' ,
40+ ` tablet_failure` tinyint unsigned NOT NULL DEFAULT ' 0' ,
41+ ` progress` float NOT NULL DEFAULT ' 0' ,
42+ ` migration_context` varchar (1024 ) NOT NULL DEFAULT ' ' ,
43+ ` ddl_action` varchar (16 ) NOT NULL DEFAULT ' ' ,
44+ ` message` text NOT NULL ,
45+ ` message_timestamp` timestamp (6 ) NULL DEFAULT NULL ,
46+ ` eta_seconds` bigint NOT NULL DEFAULT ' -1' ,
47+ ` rows_copied` bigint unsigned NOT NULL DEFAULT ' 0' ,
48+ ` vreplication_lag_seconds` bigint unsigned NOT NULL DEFAULT ' 0' ,
49+ ` table_rows` bigint NOT NULL DEFAULT ' 0' ,
50+ ` added_unique_keys` int unsigned NOT NULL DEFAULT ' 0' ,
51+ ` removed_unique_keys` int unsigned NOT NULL DEFAULT ' 0' ,
52+ ` log_file` varchar (1024 ) NOT NULL DEFAULT ' ' ,
53+ ` retain_artifacts_seconds` bigint NOT NULL DEFAULT ' 0' ,
54+ ` postpone_completion` tinyint unsigned NOT NULL DEFAULT ' 0' ,
55+ ` removed_unique_key_names` text NOT NULL ,
56+ ` dropped_no_default_column_names` text NOT NULL ,
57+ ` expanded_column_names` text NOT NULL ,
58+ ` revertible_notes` text NOT NULL ,
59+ ` allow_concurrent` tinyint unsigned NOT NULL DEFAULT ' 0' ,
60+ ` reverted_uuid` varchar (64 ) NOT NULL DEFAULT ' ' ,
61+ ` is_view` tinyint unsigned NOT NULL DEFAULT ' 0' ,
62+ ` ready_to_complete` tinyint unsigned NOT NULL DEFAULT ' 0' ,
63+ ` vitess_liveness_indicator` bigint NOT NULL DEFAULT ' 0' ,
64+ ` user_throttle_ratio` float NOT NULL DEFAULT ' 0' ,
65+ ` special_plan` text NOT NULL ,
66+ ` last_throttled_timestamp` timestamp NULL DEFAULT NULL ,
67+ ` component_throttled` tinytext NOT NULL ,
68+ ` reason_throttled` text NOT NULL ,
69+ ` cancelled_timestamp` timestamp NULL DEFAULT NULL ,
70+ ` postpone_launch` tinyint unsigned NOT NULL DEFAULT ' 0' ,
71+ ` stage` text NOT NULL ,
72+ ` cutover_attempts` int unsigned NOT NULL DEFAULT ' 0' ,
73+ ` is_immediate_operation` tinyint unsigned NOT NULL DEFAULT ' 0' ,
74+ ` reviewed_timestamp` timestamp NULL DEFAULT NULL ,
75+ ` ready_to_complete_timestamp` timestamp NULL DEFAULT NULL ,
76+ ` shadow_analyzed_timestamp` timestamp NULL DEFAULT NULL ,
77+ ` removed_foreign_key_names` text NOT NULL ,
78+ ` last_cutover_attempt_timestamp` timestamp NULL DEFAULT NULL ,
79+ ` force_cutover` tinyint unsigned NOT NULL DEFAULT ' 0' ,
80+ ` cutover_threshold_seconds` int unsigned NOT NULL DEFAULT ' 0' ,
81+ ` postponed_by_in_order_completions ` int unsigned NOT NULL DEFAULT ' 0 ' ,
8282 PRIMARY KEY (` id` ),
8383 UNIQUE KEY ` uuid_idx` (` migration_uuid` ),
8484 KEY ` keyspace_shard_idx` (` keyspace` (64 ), ` shard` (64 )),
0 commit comments