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
623e5843
Verified
Commit
623e5843
authored
4 years ago
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #14539 TIME 9:45 Registered mail analyse + sql
parent
c8e23cdb
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
migration/20.10/2010.sql
+18
-0
18 additions, 0 deletions
migration/20.10/2010.sql
sql/structure.sql
+14
-0
14 additions, 0 deletions
sql/structure.sql
with
32 additions
and
0 deletions
migration/20.10/2010.sql
+
18
−
0
View file @
623e5843
...
@@ -189,6 +189,7 @@ ALTER TABLE templates ADD COLUMN subject character varying(255);
...
@@ -189,6 +189,7 @@ ALTER TABLE templates ADD COLUMN subject character varying(255);
UPDATE
groupbasket
SET
list_event_data
=
'{"canUpdateDocuments":true}'
WHERE
list_event_data
->
'canUpdateDocument'
=
true
;
UPDATE
groupbasket
SET
list_event_data
=
'{"canUpdateDocuments":true}'
WHERE
list_event_data
->
'canUpdateDocument'
=
true
;
/* REGISTERED MAIL */
/* REGISTERED MAIL */
DROP
TABLE
IF
EXISTS
issuing_sites
;
CREATE
TABLE
IF
NOT
EXISTS
issuing_sites
(
CREATE
TABLE
IF
NOT
EXISTS
issuing_sites
(
id
SERIAL
NOT
NULL
,
id
SERIAL
NOT
NULL
,
label
CHARACTER
VARYING
(
256
)
NOT
NULL
,
label
CHARACTER
VARYING
(
256
)
NOT
NULL
,
...
@@ -203,6 +204,7 @@ CREATE TABLE IF NOT EXISTS issuing_sites (
...
@@ -203,6 +204,7 @@ CREATE TABLE IF NOT EXISTS issuing_sites (
address_country
CHARACTER
VARYING
(
256
),
address_country
CHARACTER
VARYING
(
256
),
CONSTRAINT
issuing_sites_pkey
PRIMARY
KEY
(
id
)
CONSTRAINT
issuing_sites_pkey
PRIMARY
KEY
(
id
)
);
);
DROP
TABLE
IF
EXISTS
issuing_sites_entities
;
CREATE
TABLE
IF
NOT
EXISTS
issuing_sites_entities
(
CREATE
TABLE
IF
NOT
EXISTS
issuing_sites_entities
(
id
SERIAL
NOT
NULL
,
id
SERIAL
NOT
NULL
,
site_id
INTEGER
NOT
NULL
,
site_id
INTEGER
NOT
NULL
,
...
@@ -211,6 +213,7 @@ CREATE TABLE IF NOT EXISTS issuing_sites_entities (
...
@@ -211,6 +213,7 @@ CREATE TABLE IF NOT EXISTS issuing_sites_entities (
CONSTRAINT
issuing_sites_entities_unique_key
UNIQUE
(
site_id
,
entity_id
)
CONSTRAINT
issuing_sites_entities_unique_key
UNIQUE
(
site_id
,
entity_id
)
);
);
DROP
TABLE
IF
EXISTS
registered_number_range
;
CREATE
TABLE
IF
NOT
EXISTS
registered_number_range
(
CREATE
TABLE
IF
NOT
EXISTS
registered_number_range
(
id
SERIAL
NOT
NULL
,
id
SERIAL
NOT
NULL
,
type
CHARACTER
VARYING
(
15
)
NOT
NULL
,
type
CHARACTER
VARYING
(
15
)
NOT
NULL
,
...
@@ -226,6 +229,21 @@ CREATE TABLE IF NOT EXISTS registered_number_range (
...
@@ -226,6 +229,21 @@ CREATE TABLE IF NOT EXISTS registered_number_range (
CONSTRAINT
registered_number_range_unique_key
UNIQUE
(
tracking_account_number
)
CONSTRAINT
registered_number_range_unique_key
UNIQUE
(
tracking_account_number
)
);
);
DROP
TABLE
IF
EXISTS
registered_mail_resources
;
CREATE
TABLE
IF
NOT
EXISTS
registered_mail_resources
(
id
SERIAL
NOT
NULL
,
res_id
INTEGER
NOT
NULL
,
type
CHARACTER
VARYING
(
2
)
NOT
NULL
,
issuing_site
INTEGER
NOT
NULL
,
warranty
INTEGER
NOT
NULL
,
letter
BOOL
NOT
NULL
DEFAULT
FALSE
,
recipient
jsonb
NOT
NULL
,
number
INTEGER
NOT
NULL
,
reference
TEXT
,
generated
BOOL
NOT
NULL
DEFAULT
FALSE
,
CONSTRAINT
registered_mail_resources_pkey
PRIMARY
KEY
(
id
)
);
/* RE CREATE VIEWS */
/* RE CREATE VIEWS */
CREATE
OR
REPLACE
VIEW
res_view_letterbox
AS
CREATE
OR
REPLACE
VIEW
res_view_letterbox
AS
SELECT
r
.
res_id
,
SELECT
r
.
res_id
,
...
...
This diff is collapsed.
Click to expand it.
sql/structure.sql
+
14
−
0
View file @
623e5843
...
@@ -1444,3 +1444,17 @@ CREATE TABLE IF NOT EXISTS registered_number_range (
...
@@ -1444,3 +1444,17 @@ CREATE TABLE IF NOT EXISTS registered_number_range (
CONSTRAINT
registered_number_range_pkey
PRIMARY
KEY
(
id
),
CONSTRAINT
registered_number_range_pkey
PRIMARY
KEY
(
id
),
CONSTRAINT
registered_number_range_unique_key
UNIQUE
(
tracking_account_number
)
CONSTRAINT
registered_number_range_unique_key
UNIQUE
(
tracking_account_number
)
);
);
CREATE
TABLE
IF
NOT
EXISTS
registered_mail_resources
(
id
SERIAL
NOT
NULL
,
res_id
INTEGER
NOT
NULL
,
type
CHARACTER
VARYING
(
2
)
NOT
NULL
,
issuing_site
INTEGER
NOT
NULL
,
warranty
INTEGER
NOT
NULL
,
letter
BOOL
NOT
NULL
DEFAULT
FALSE
,
recipient
jsonb
NOT
NULL
,
number
INTEGER
NOT
NULL
,
reference
TEXT
,
generated
BOOL
NOT
NULL
DEFAULT
FALSE
,
CONSTRAINT
registered_mail_resources_pkey
PRIMARY
KEY
(
id
)
);
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