Commit 657fcdfb authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'develop' of git.unicaen.fr:dsi/sygal into develop

parents f478f822 5ed8e80e
Loading
Loading
Loading
Loading
+1 −1
Changes for config/application.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -16,12 +16,12 @@ $modules = [
    'UnicaenImport',
    'UnicaenFaq',
    'UnicaenLeocarte',
    'Application',
    'Import',
    'Indicateur',
    'Retraitement',
    'Notification',
    'Information',
    'Application',
];
if (php_sapi_name() === 'cli') {
    unset($modules['BjyAuthorize']);
+37 −0
Changes for data/SQL/information.sql: 37 added lines, 0 removed lines.
Original line number Diff line number Diff line
-- STRUCTURE DE LA TABLE
create table INFORMATION
(
	ID NUMBER not null,
	TITRE VARCHAR2(256) not null,
	HISTO_CREATION DATE default SYSDATE not null,
	HISTO_CREATEUR_ID NUMBER not null
		constraint INFORMATION_HCFK
			references UTILISATEUR,
	HISTO_MODIFICATION DATE default SYSDATE not null,
	HISTO_MODIFICATEUR_ID NUMBER not null
		constraint INFORMATION_HMFK
			references UTILISATEUR,
	HISTO_DESTRUCTION DATE,
	HISTO_DESTRUCTEUR_ID NUMBER
		constraint INFORMATION_HDFK
			references UTILISATEUR,
	CONTENU CLOB not null,
	PRIORITE NUMBER default 0 not null,
	EST_VISIBLE NUMBER default 1 not null
)
/

create unique index INFORMATION_ID_UINDEX
	on INFORMATION (ID)
/

alter table INFORMATION
	add constraint INFORMATION_PK
		primary key (ID)
;

-- LES DONNÉES DOIVENT ÊTRE REPRISES EN BASES SINON C'EST LE BAZAR

-- PRIVILEGE
INSERT INTO SYGAL_TEST.PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES (10, 23, 'modifier-information', 'Modifier les pages d''information ', 50);
INSERT INTO SYGAL_TEST.ROLE_PRIVILEGE (ROLE_ID, PRIVILEGE_ID) VALUE (1 , 10);
 No newline at end of file

data/SQL/profil.sql

0 → 100644
+28 −0
Changes for data/SQL/profil.sql: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
rename ROLE_MODELE to PROFIL;
rename ROLE_MODELE_PRIVILEGE to PROFIL_PRIVILEGE;

create sequence PROFIL_ID_SEQ;
--
-- Avance d'une sequence.
--
declare
  maxid integer;
  seqnextval integer;
begin
  select max(PROFIL.id) into maxid from PROFIL;
  LOOP
    select PROFIL_ID_SEQ.nextval into seqnextval from dual;
    EXIT WHEN seqnextval >= maxid;
  END LOOP;
end;

create unique index PROFIL_ROLE_ID_uindex on PROFIL (ROLE_ID);

alter table PROFIL_PRIVILEGE rename column ROLE_ID to PROFIL_ID;
alter table PROFIL_PRIVILEGE add constraint PROFIL_PRIVILEGE_PROFIL_ID_fk foreign key (PROFIL_ID) references PROFIL;

create table PROFIL_TO_ROLE (
	PROFIL_ID integer not null constraint PROFIL_TO_ROLE_PROFIL_ID_fk references PROFIL,
	ROLE_ID integer not null constraint PROFIL_TO_ROLE_ROLE_ID_fk references ROLE,
	constraint PROFIL_TO_ROLE_pk primary key (PROFIL_ID, ROLE_ID)
);
 No newline at end of file
+0 −2
Changes for module/Application/config/module.config.php: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -252,8 +252,6 @@ return array(
            '062_uploader' => "/js/jquery.fileupload.js",
            '063_uploader' => "/js/unicaen.uploader.widget.js",
        ],
        'inline_scripts'        => [
        ],
        'stylesheets'           => [
            '050_bootstrap-theme' => false,
        ],
+1 −0
Changes for module/Application/config/others/ecole-doctorale.config.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ return [
                    'privileges' => [
                        StructurePrivileges::STRUCTURE_MODIFICATION_TOUTES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_MODIFICATION_SES_STRUCTURES,
                        StructurePrivileges::STRUCTURE_CREATION_ED,
                    ],
                ],
                [
Loading