-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move metadata schema creation into refinery migration
- Loading branch information
Showing
7 changed files
with
48 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CREATE TABLE IF NOT EXISTS metadata_last_sync_state ( | ||
job_name TEXT PRIMARY KEY NOT NULL, | ||
last_offset BIGINT NOT NULL, | ||
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), | ||
sync_batch_id BIGINT NOT NULL, | ||
normalize_batch_id BIGINT | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS metadata_qrep_partitions ( | ||
job_name TEXT NOT NULL, | ||
partition_id TEXT NOT NULL, | ||
sync_partition JSON NOT NULL, | ||
sync_start_time TIMESTAMPTZ NOT NULL, | ||
sync_finish_time TIMESTAMPTZ NOT NULL DEFAULT NOW(), | ||
PRIMARY KEY (job_name, partition_id) | ||
); |