Skip to content
Snippets Groups Projects
Select Git revision
  • 576531eb98be151d5626c4786d89a03584e54211
  • master default protected
  • update-2.0.0-dev
  • alc-refactoring-entity
  • sb-comments-update
  • alc-dev
  • 2.0.1
  • 2.0.0
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 0.1.5
  • 1.0.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.0.15
  • 0.0.14
  • 0.0.13
  • 0.0.12
  • 0.0.11
26 results

database-install-sql.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    002_privileges.sql 2.02 KiB
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('unicaenegracon','Egracon - Gestion du module',10000,'UnicaenEgracon\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'unicaenegracon_index', 'Accéder à la fiche descriptive', 10 UNION
        SELECT 'unicaenegracon_conversions', 'Accéder à la table de conversion', 20 UNION
        SELECT 'unicaenegracon_bacasable', 'Accéder au bac à sable', 30
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'unicaenegracon';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('unicaenegraconpays', 'Egracon - Gestion des pays', 10100, 'UnicaenEgracon\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'unicaenegraconpays_index', 'Accéder à l''index', 10 UNION
        SELECT 'unicaenegraconpays_afficher', 'Afficher', 20 UNION
        SELECT 'unicaenegraconpays_ajouter', 'Ajouter', 30 UNION
        SELECT 'unicaenegraconpays_modifier', 'Modifier', 40 UNION
        SELECT 'unicaenegraconpays_supprimer', 'Supprimer', 50
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'unicaenegraconpays';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('unicaenegraconnote', 'Egracon - Gestion des notes', 10200, 'UnicaenEgracon\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'unicaenegraconnote_index', 'Accéder à l''index', 10 UNION
        SELECT 'unicaenegraconnote_afficher', 'Afficher', 20 UNION
        SELECT 'unicaenegraconnote_ajouter', 'Ajouter', 30 UNION
        SELECT 'unicaenegraconnote_modifier', 'Modifier', 40 UNION
        SELECT 'unicaenegraconnote_supprimer', 'Supprimer', 50
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'unicaenegraconnote';