-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
2,271 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DROP TABLE IF EXISTS graveler_repositories; | ||
DROP TABLE IF EXISTS graveler_commits; | ||
DROP TABLE IF EXISTS graveler_branches; |
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,38 @@ | ||
CREATE TABLE IF NOT EXISTS graveler_repositories | ||
( | ||
id text NOT NULL, | ||
|
||
storage_namespace text NOT NULL, | ||
creation_date timestamptz NOT NULL, | ||
default_branch text NOT NULL, | ||
|
||
PRIMARY KEY (id) | ||
); | ||
|
||
|
||
CREATE TABLE IF NOT EXISTS graveler_branches | ||
( | ||
repository_id text NOT NULL, | ||
id text NOT NULL, | ||
|
||
staging_token text, | ||
commit_id text, | ||
|
||
PRIMARY KEY (repository_id, id) | ||
); | ||
|
||
|
||
CREATE TABLE IF NOT EXISTS graveler_commits | ||
( | ||
repository_id text NOT NULL, | ||
id text NOT NULL, | ||
|
||
committer text NOT NULL, | ||
message text NOT NULL, | ||
creation_date timestamptz NOT NULL, | ||
tree_id text NOT NULL, | ||
metadata jsonb, | ||
parents text[], | ||
|
||
PRIMARY KEY (repository_id, id) | ||
); |
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
Oops, something went wrong.