Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
whats-this
api
Commits
bfafe94e
Commit
bfafe94e
authored
2 years ago
by
Auri
Browse files
Options
Downloads
Patches
Plain Diff
sql/v1tov2: path_full_stem(path) is unique per-bucket
parent
a01186b3
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Draft: Migrate the database to schema v2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/v1tov2.sql
+2
-2
2 additions, 2 deletions
sql/v1tov2.sql
with
2 additions
and
2 deletions
sql/v1tov2.sql
+
2
−
2
View file @
bfafe94e
...
@@ -270,8 +270,8 @@ ALTER TABLE object
...
@@ -270,8 +270,8 @@ ALTER TABLE object
DROP
COLUMN
dir
,
DROP
COLUMN
dir
,
DROP
COLUMN
random_key
;
DROP
COLUMN
random_key
;
CREATE
UNIQUE
INDEX
object_path_full_stem_path_key
CREATE
UNIQUE
INDEX
object_
bucket_
path_full_stem_path_key
ON
object
(
path_full_stem
(
path
))
ON
object
(
bucket
,
path_full_stem
(
path
))
WHERE
enforce_unique_name
;
WHERE
enforce_unique_name
;
CREATE
FUNCTION
_object_before_insert_normalize_path
()
RETURNS
trigger
CREATE
FUNCTION
_object_before_insert_normalize_path
()
RETURNS
trigger
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment