Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ddl/000001_initial.down.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BEGIN;

DROP TABLE IF EXISTS auth_credentials;
DROP TABLE IF EXISTS auth_group_policies;
DROP TABLE IF EXISTS auth_user_policies;
Expand All @@ -19,4 +21,6 @@ DROP TABLE IF EXISTS catalog_repositories;
DROP SEQUENCE IF EXISTS catalog_repositories_id_seq;
DROP SEQUENCE IF EXISTS catalog_branches_id_seq;
DROP SEQUENCE IF EXISTS catalog_commit_id_seq;
DROP FUNCTION IF EXISTS catalog_max_commit_id;
DROP FUNCTION IF EXISTS catalog_max_commit_id;

COMMIT;
3 changes: 3 additions & 0 deletions ddl/000001_initial.up.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BEGIN;

-- auth schema, containing information about lakeFS authentication and authorization
CREATE TABLE IF NOT EXISTS auth_users (
id serial NOT NULL PRIMARY KEY,
Expand Down Expand Up @@ -244,3 +246,4 @@ ALTER TABLE ONLY catalog_object_dedup
ALTER TABLE ONLY catalog_repositories
ADD CONSTRAINT catalog_repositories_branches_id_fk FOREIGN KEY (default_branch) REFERENCES catalog_branches(id) DEFERRABLE INITIALLY DEFERRED NOT VALID;

COMMIT;
4 changes: 4 additions & 0 deletions ddl/000002_retention.up.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BEGIN;

ALTER TABLE catalog_object_dedup
DROP CONSTRAINT IF EXISTS catalog_object_dedup_pk,
ADD COLUMN IF NOT EXISTS deleting boolean DEFAULT false NOT NULL,
Expand All @@ -8,3 +10,5 @@ Set before deleting an object to indicate it is going to be
removed by an AWS S3 batch operation and cannot be used for new
dedupes.
$$;

END;