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
639bc3ed
Commit
639bc3ed
authored
10 years ago
by
Jean-Louis ERCOLANI
Browse files
Options
Downloads
Patches
Plain Diff
FEAT
#1947
add relation between users and baskets from secondary profiles
parent
f512f259
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/trunk/sql/150.sql
+21
-0
21 additions, 0 deletions
core/trunk/sql/150.sql
core/trunk/sql/structure.sql
+18
-0
18 additions, 0 deletions
core/trunk/sql/structure.sql
with
39 additions
and
0 deletions
core/trunk/sql/150.sql
+
21
−
0
View file @
639bc3ed
...
...
@@ -152,6 +152,27 @@ CREATE TABLE actions_categories
CONSTRAINT
actions_categories_pkey
PRIMARY
KEY
(
action_id
,
category_id
)
);
-- ************************************************************************* --
-- RELATION BETWEEN USERS AND BASKETS OF SECONDARY PROFILES --
-- ************************************************************************* --
DROP
SEQUENCE
IF
EXISTS
user_baskets_secondary_seq
;
CREATE
SEQUENCE
user_baskets_secondary_seq
INCREMENT
1
MINVALUE
1
MAXVALUE
9223372036854775807
START
1
CACHE
1
;
DROP
TABLE
IF
EXISTS
user_baskets_secondary
;
CREATE
TABLE
user_baskets_secondary
(
system_id
bigint
NOT
NULL
DEFAULT
nextval
(
'user_baskets_secondary_seq'
::
regclass
),
user_id
character
varying
(
128
)
NOT
NULL
,
group_id
character
varying
(
32
)
NOT
NULL
,
basket_id
character
varying
(
32
)
NOT
NULL
,
CONSTRAINT
user_baskets_secondary_pkey
PRIMARY
KEY
(
system_id
)
);
-- ************************************************************************* --
-- NEW COLUMNS IN EXTENSIONS TABLE --
...
...
This diff is collapsed.
Click to expand it.
core/trunk/sql/structure.sql
+
18
−
0
View file @
639bc3ed
...
...
@@ -3470,6 +3470,24 @@ CREATE TABLE actions_categories
CONSTRAINT
actions_categories_pkey
PRIMARY
KEY
(
action_id
,
category_id
)
);
DROP
SEQUENCE
IF
EXISTS
user_baskets_secondary_seq
;
CREATE
SEQUENCE
user_baskets_secondary_seq
INCREMENT
1
MINVALUE
1
MAXVALUE
9223372036854775807
START
1
CACHE
1
;
DROP
TABLE
IF
EXISTS
user_baskets_secondary
;
CREATE
TABLE
user_baskets_secondary
(
system_id
bigint
NOT
NULL
DEFAULT
nextval
(
'user_baskets_secondary_seq'
::
regclass
),
user_id
character
varying
(
128
)
NOT
NULL
,
group_id
character
varying
(
32
)
NOT
NULL
,
basket_id
character
varying
(
32
)
NOT
NULL
,
CONSTRAINT
user_baskets_secondary_pkey
PRIMARY
KEY
(
system_id
)
);
--VIEWS
--view for demo
DROP
VIEW
IF
EXISTS
res_view
;
...
...
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