Commit b749d90e authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Upgrade unicaen/db-import pour pouvoir filtrer les observations d'import par source de données

parent 33f6af03
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@
        "unicaen/auth-token": "^6.0",
        "unicaen/console": "^6.0",
        "unicaen/db-anonym": "^3.0",
        "unicaen/db-import": "6.0.*",
        "unicaen/db-import": "dev-release_6.1.2",
        "unicaen/faq": "^6.0",
        "unicaen/idref": "dev-master",
        "unicaen/ldap": "^6.0",
+5 −4
Changes for composer.lock: 5 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
        "This file is @generated automatically"
    ],
    "content-hash": "e0dc24b3bc56c1578234ed8168b399e7",
    "content-hash": "951ef75066bb14428b192b3abb35c4df",
    "packages": [
        {
            "name": "aws/aws-crt-php",
@@ -8911,11 +8911,11 @@
        },
        {
            "name": "unicaen/db-import",
            "version": "6.0.3",
            "version": "dev-release_6.1.2",
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/db-import.git",
                "reference": "fa75f61b9e2d95514e8e37b3e72a3e842bcf24be"
                "reference": "fc1fe29080020853982df65d5dc425eb2bc56dc9"
            },
            "require": {
                "beberlei/assert": "^3.3",
@@ -8948,7 +8948,7 @@
                }
            },
            "description": "Module d'import entre bases de données",
            "time": "2023-07-13T10:11:51+00:00"
            "time": "2024-01-15T09:33:02+00:00"
        },
        {
            "name": "unicaen/faq",
@@ -9737,6 +9737,7 @@
    "aliases": [],
    "minimum-stability": "dev",
    "stability-flags": {
        "unicaen/db-import": 20,
        "unicaen/idref": 20
    },
    "prefer-stable": true,
+56 −14
Changes for config/autoload/global.php: 56 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -200,7 +200,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_structure',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -228,7 +229,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_etablissement',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -256,7 +258,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_ecole_doct',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -284,7 +287,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_unite_rech',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -323,7 +327,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_individu',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -352,7 +357,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_doctorant',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -400,7 +406,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_these',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -429,7 +436,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_these_annee_univ',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -458,7 +466,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_role',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -495,7 +504,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_acteur',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -525,7 +535,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_origine_financement',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -561,7 +572,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_financement',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -595,7 +607,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_titre_acces',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
    [
@@ -627,7 +640,8 @@ const CONFIG_IMPORTS = [
            'table' => 'tmp_variable',
            'connection' => 'default',
            'source_code_column' => 'source_code',
            'id_sequence' => false,
            'id_strategy' => null,
            'id_sequence' => null,
        ],
    ],
];
@@ -654,6 +668,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -672,6 +688,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -690,6 +708,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -708,6 +728,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -727,6 +749,8 @@ const CONFIG_SYNCHROS = [
            'source_code_column' => 'SOURCE_CODE',
//            'where'              => "d.source_code like 'UCN::%'", // todo: à virer
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -745,6 +769,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -763,6 +789,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -781,6 +809,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -799,6 +829,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -817,6 +849,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -835,6 +869,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -853,6 +889,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -871,6 +909,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
    [
@@ -889,6 +929,8 @@ const CONFIG_SYNCHROS = [
            'connection' => 'default',
            'source_code_column' => 'SOURCE_CODE',
            'intermediate_table_auto_drop' => false,
            'id_strategy' => 'SEQUENCE',
            'id_sequence' => null,
        ],
    ],
];