Commit 2a75c921 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Génération des données modifiée pour ajouter comme admin l'utilisateur OSEAPPLI

parent c587b968
Loading
Loading
Loading
Loading
+6 −2
Changes for code/GenDbStructure/DataGen.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class DataGen
    protected $breaks = false;

    protected $tablesSel  = [
        'AFFECTATION'                  => "source_code = 'local-aff-admin'",
        'AFFECTATION'                  => "utilisateur_id IN (SELECT id FROM utilisateur WHERE username='".self::OSE_USER."')",
        'ANNEE'                        => '',
        'CATEGORIE_PRIVILEGE'          => '',
        'CC_ACTIVITE'                  => '',
@@ -195,6 +195,10 @@ class DataGen
            'ID',
        ];

        if ('UTILISATEUR' == $tableName){
            return 'USERNAME';
        }

        $def = $this->getTablesInfo($tableName);

        foreach ($codesCols as $col) {
@@ -326,7 +330,7 @@ class DataGen
            return "(SELECT id FROM role WHERE code = ''administrateur'')";
        }

        if ('USERNAME' == $column && $table == 'UTILISATEUR'){
        if ('PASSWORD' == $column && $table == 'UTILISATEUR'){
            return "''x''";
        }

+9 −8

File changed.

Preview size limit exceeded, changes collapsed.