Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
c35350d5
Commit
c35350d5
authored
5 years ago
by
Guillaume Heurtier
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #12471 TIME 0:15 fix add primary key constraint
parent
02a24ba8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migration/20.03/2003.sql
+2
-0
2 additions, 0 deletions
migration/20.03/2003.sql
with
2 additions
and
0 deletions
migration/20.03/2003.sql
+
2
−
0
View file @
c35350d5
...
@@ -250,6 +250,8 @@ DO $$ BEGIN
...
@@ -250,6 +250,8 @@ DO $$ BEGIN
ALTER
TABLE
tags
DROP
COLUMN
IF
EXISTS
usage
;
ALTER
TABLE
tags
DROP
COLUMN
IF
EXISTS
usage
;
ALTER
TABLE
tags
ADD
COLUMN
usage
TEXT
;
ALTER
TABLE
tags
ADD
COLUMN
usage
TEXT
;
ALTER
TABLE
tags
ADD
CONSTRAINT
tags_id_pkey
PRIMARY
KEY
(
id
);
DROP
TABLE
IF
EXISTS
resources_tags
;
DROP
TABLE
IF
EXISTS
resources_tags
;
ALTER
TABLE
tag_res
ADD
COLUMN
id
serial
NOT
NULL
;
ALTER
TABLE
tag_res
ADD
COLUMN
id
serial
NOT
NULL
;
ALTER
TABLE
tag_res
RENAME
TO
resources_tags
;
ALTER
TABLE
tag_res
RENAME
TO
resources_tags
;
...
...
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