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
5a4b7fbc
Verified
Commit
5a4b7fbc
authored
7 years ago
by
Florian Azizian
Browse files
Options
Downloads
Patches
Plain Diff
FIX
#238
sql for M2M
parent
d2482e54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sql/develop.sql
+5
-1
5 additions, 1 deletion
sql/develop.sql
sql/structure.sql
+1
-0
1 addition, 0 deletions
sql/structure.sql
with
6 additions
and
1 deletion
sql/develop.sql
+
5
−
1
View file @
5a4b7fbc
...
@@ -678,6 +678,10 @@ ALTER TABLE message_exchange ADD res_id_master numeric default NULL;
...
@@ -678,6 +678,10 @@ ALTER TABLE message_exchange ADD res_id_master numeric default NULL;
ALTER
TABLE
contact_addresses
DROP
COLUMN
IF
EXISTS
external_contact_id
;
ALTER
TABLE
contact_addresses
DROP
COLUMN
IF
EXISTS
external_contact_id
;
ALTER
TABLE
contact_addresses
ADD
COLUMN
external_contact_id
character
varying
(
128
);
ALTER
TABLE
contact_addresses
ADD
COLUMN
external_contact_id
character
varying
(
128
);
/** ADD NEW COLUMN IS CONTACTS_V2 **/
ALTER
TABLE
contacts_v2
DROP
COLUMN
IF
EXISTS
is_external_contact
;
ALTER
TABLE
contacts_v2
ADD
COLUMN
is_external_contact
character
(
1
)
DEFAULT
'N'
;
DROP
SEQUENCE
IF
EXISTS
contact_communication_id_seq
CASCADE
;
DROP
SEQUENCE
IF
EXISTS
contact_communication_id_seq
CASCADE
;
CREATE
SEQUENCE
contact_communication_id_seq
CREATE
SEQUENCE
contact_communication_id_seq
INCREMENT
1
INCREMENT
1
...
@@ -742,4 +746,4 @@ ALTER TABLE notifications DROP COLUMN IF EXISTS rss_url_template;
...
@@ -742,4 +746,4 @@ ALTER TABLE notifications DROP COLUMN IF EXISTS rss_url_template;
UPDATE
notifications
SET
event_id
=
'baskets'
WHERE
notification_id
=
'BASKETS'
;
UPDATE
notifications
SET
event_id
=
'baskets'
WHERE
notification_id
=
'BASKETS'
;
DELETE
FROM
parameters
where
id
=
'user_quota'
;
DELETE
FROM
parameters
where
id
=
'user_quota'
;
INSERT
INTO
parameters
(
id
,
param_value_string
,
param_value_int
,
param_value_date
)
VALUES
(
'user_quota'
,
''
,
0
,
NULL
);
INSERT
INTO
parameters
(
id
,
param_value_string
,
param_value_int
,
param_value_date
)
VALUES
(
'user_quota'
,
''
,
0
,
NULL
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sql/structure.sql
+
1
−
0
View file @
5a4b7fbc
...
@@ -1189,6 +1189,7 @@ CREATE TABLE contacts_v2
...
@@ -1189,6 +1189,7 @@ CREATE TABLE contacts_v2
contact_id
bigint
NOT
NULL
DEFAULT
nextval
(
'contact_v2_id_seq'
::
regclass
),
contact_id
bigint
NOT
NULL
DEFAULT
nextval
(
'contact_v2_id_seq'
::
regclass
),
contact_type
bigint
NOT
NULL
,
contact_type
bigint
NOT
NULL
,
is_corporate_person
character
(
1
)
DEFAULT
'Y'
::
bpchar
,
is_corporate_person
character
(
1
)
DEFAULT
'Y'
::
bpchar
,
is_external_contact
character
(
1
)
DEFAULT
'N'
::
bpchar
,
society
character
varying
(
255
),
society
character
varying
(
255
),
society_short
character
varying
(
32
),
society_short
character
varying
(
32
),
firstname
character
varying
(
255
),
firstname
character
varying
(
255
),
...
...
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