-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUG] Changes to schema for sysdb. (#2897)
[BUG] Schema changes related to Issue#2884 and few other necessary constraints. ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Fix for Issue #2884. - Added additional constraints to the schema to avoid future issues. - New functionality - n/a ## Test plan *How are these changes tested?* - [x] Tests pass locally with `make test` for golang ## Documentation Changes None
- Loading branch information
1 parent
60276f7
commit aeea344
Showing
10 changed files
with
108 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- Modify "collections" table | ||
ALTER TABLE "public"."collections" ALTER COLUMN "name" SET NOT NULL, ALTER COLUMN "database_id" SET NOT NULL; | ||
-- Modify "databases" table | ||
ALTER TABLE "public"."databases" ALTER COLUMN "name" SET NOT NULL, ALTER COLUMN "tenant_id" SET NOT NULL; | ||
-- Modify "segments" table | ||
ALTER TABLE "public"."segments" ADD CONSTRAINT "uni_segments_id" UNIQUE ("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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
h1:4X2Y8W9SS2BVW59Ku/FrBk9PLzrQe/Zx0vD1oha/5to= | ||
h1:Xacc5EyAVCwyNNuFYFQa/HxjtROca0tOu21L3UKvm70= | ||
20240313233558.sql h1:Gv0TiSYsqGoOZ2T2IWvX4BOasauxool8PrBOIjmmIdg= | ||
20240321194713.sql h1:kVkNpqSFhrXGVGFFvL7JdK3Bw31twFcEhI6A0oCFCkg= | ||
20240327075032.sql h1:nlr2J74XRU8erzHnKJgMr/tKqJxw9+R6RiiEBuvuzgo= | ||
20240327172649.sql h1:UUGo6AzWXKLcpYVd5qH6Hv9jpHNV86z42o6ft5OR0zU= | ||
20240411201006.sql h1:jjzYJPzDVTxQAvOI7gRtNTiZJHy1Hpw5urP8EzqxgUk= | ||
20240612201006.sql h1:vUuh/O0blyoOYS+YEjo6/zqRmwtoaleNEUqKCAecxKU= | ||
20240621171854.sql h1:kc8ZFK8A4/GLHu0gQ04RdIt3O38wfcD6ouXX4nr7lTk= | ||
20241003212820.sql h1:zHloxrMr7EMcqV008a3aqQdU5fHjWY3m66CIoThexbo= |
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