Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
import
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
import
Commits
cca7cd5d
Commit
cca7cd5d
authored
Mar 20, 2019
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
MAJ fichier SQL (erreurs corrigées)
parent
3cddf5dc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#4079
passed
Mar 20, 2019
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/module.sql
+16
-20
16 additions, 20 deletions
data/module.sql
with
16 additions
and
20 deletions
data/module.sql
+
16
−
20
View file @
cca7cd5d
...
@@ -119,7 +119,9 @@ create or replace PACKAGE BODY UNICAEN_IMPORT AS
...
@@ -119,7 +119,9 @@ create or replace PACKAGE BODY UNICAEN_IMPORT AS
FUNCTION
get_current_user
RETURN
INTEGER
IS
FUNCTION
get_current_user
RETURN
INTEGER
IS
BEGIN
BEGIN
IF
v_current_user
IS
NULL
THEN
IF
v_current_user
IS
NULL
THEN
v_current_user
:
=
OSE_PARAMETRE
.
GET_OSE_USER
();
-- 1 à remplacer par un ID d'utilisateur (USER.ID)
-- Permet de préciser quel est l'utilisateur qui sera indiqué lorsque UnicaenImport fera ses synchros
v_current_user
:
=
1
;
END
IF
;
END
IF
;
RETURN
v_current_user
;
RETURN
v_current_user
;
END
get_current_user
;
END
get_current_user
;
...
@@ -134,7 +136,9 @@ create or replace PACKAGE BODY UNICAEN_IMPORT AS
...
@@ -134,7 +136,9 @@ create or replace PACKAGE BODY UNICAEN_IMPORT AS
FUNCTION
get_current_annee
RETURN
INTEGER
IS
FUNCTION
get_current_annee
RETURN
INTEGER
IS
BEGIN
BEGIN
IF
v_current_annee
IS
NULL
THEN
IF
v_current_annee
IS
NULL
THEN
v_current_annee
:
=
OSE_PARAMETRE
.
GET_ANNEE_IMPORT
();
-- NULL A remplacer par un NUMBER qui précise l'année à partir de laquelle vont
-- se faire les imports (2018 pour 2018/2019 par exemple)
v_current_annee
:
=
null
;
END
IF
;
END
IF
;
RETURN
v_current_annee
;
RETURN
v_current_annee
;
END
get_current_annee
;
END
get_current_annee
;
...
@@ -208,10 +212,6 @@ END UNICAEN_IMPORT_AUTOGEN_PROCS__;
...
@@ -208,10 +212,6 @@ END UNICAEN_IMPORT_AUTOGEN_PROCS__;
* Privilèges
* Privilèges
*********************************************************************************************/
*********************************************************************************************/
create
sequence
CATEGORIE_PRIVILEGE_ID_SEQ
;
/
insert
into
CATEGORIE_PRIVILEGE
(
ID
,
CODE
,
LIBELLE
,
ORDRE
)
values
(
insert
into
CATEGORIE_PRIVILEGE
(
ID
,
CODE
,
LIBELLE
,
ORDRE
)
values
(
CATEGORIE_PRIVILEGE_ID_SEQ
.
nextval
,
CATEGORIE_PRIVILEGE_ID_SEQ
.
nextval
,
'import'
,
'import'
,
...
@@ -221,10 +221,6 @@ insert into CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) values (
...
@@ -221,10 +221,6 @@ insert into CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) values (
/
/
create
sequence
PRIVILEGE_ID_SEQ
;
/
insert
into
PRIVILEGE
(
ID
,
CATEGORIE_ID
,
CODE
,
LIBELLE
,
ORDRE
)
select
insert
into
PRIVILEGE
(
ID
,
CATEGORIE_ID
,
CODE
,
LIBELLE
,
ORDRE
)
select
PRIVILEGE_ID_SEQ
.
nextval
,
PRIVILEGE_ID_SEQ
.
nextval
,
cat
.
id
,
cat
.
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