Skip to content

Commit

Permalink
Add default value for shard_id and update_time in postgres (cadence-w…
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-xie authored May 11, 2023
1 parent 529468e commit 5cb4c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE executions_visibility ADD update_time TIMESTAMP NULL;
ALTER TABLE executions_visibility ADD update_time TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP;
2 changes: 1 addition & 1 deletion schema/postgres/visibility/versioned/v0.7/add_shard_id.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE executions_visibility ADD shard_id INTEGER NULL;
ALTER TABLE executions_visibility ADD shard_id INTEGER NULL DEFAULT -1;

0 comments on commit 5cb4c9f

Please sign in to comment.