diff --git a/schema/postgres/visibility/versioned/v0.6/add_update_time.sql b/schema/postgres/visibility/versioned/v0.6/add_update_time.sql index bee69652a28..b18f3818dff 100644 --- a/schema/postgres/visibility/versioned/v0.6/add_update_time.sql +++ b/schema/postgres/visibility/versioned/v0.6/add_update_time.sql @@ -1 +1 @@ -ALTER TABLE executions_visibility ADD update_time TIMESTAMP NULL; \ No newline at end of file +ALTER TABLE executions_visibility ADD update_time TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP; \ No newline at end of file diff --git a/schema/postgres/visibility/versioned/v0.7/add_shard_id.sql b/schema/postgres/visibility/versioned/v0.7/add_shard_id.sql index 1157b6944cc..0686408d55e 100644 --- a/schema/postgres/visibility/versioned/v0.7/add_shard_id.sql +++ b/schema/postgres/visibility/versioned/v0.7/add_shard_id.sql @@ -1 +1 @@ -ALTER TABLE executions_visibility ADD shard_id INTEGER NULL; \ No newline at end of file +ALTER TABLE executions_visibility ADD shard_id INTEGER NULL DEFAULT -1; \ No newline at end of file