Skip to content
Snippets Groups Projects
Commit e3c2ddca authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Initialisation des données des tables pour les champs autres du nouveau dossier

parent ca64d211
No related branches found
No related tags found
1 merge request!55Ll bug report services
......@@ -154,7 +154,11 @@ class DataGen
'key' => 'CODE',
'options' => ['update' => false, 'delete' => false],
],
[
'table' => 'DOSSIER_CHAMP_AUTRE_TYPE',
'context' => ['install', 'update'],
'key' => 'CODE',
],
/* Nomenclatures partiellement paramétrables (certaines colonnes) */
[
......@@ -169,6 +173,12 @@ class DataGen
'key' => ['TYPE_VOLUME_HORAIRE_ID', 'TYPE_INTERVENANT_ID'],
'options' => ['update-ignore-cols' => ['PRIORITE']],
],
[
'table' => 'DOSSIER_CHAMP_AUTRE',
'context' => ['install', 'update'],
'key' => 'ID',
'options' => ['update-ignore-cols' => ['LIBELLE', 'DOSSIER_CHAMP_AUTRE_TYPE_ID', 'CONTENU', 'DESCRIPTION']],
],
/* Tables avec paramétrages pré-configurés (certaines colonnes + nouveaux enregistrements) */
......
......@@ -40,8 +40,8 @@ return [
'length' => 0,
'scale' => NULL,
'precision' => NULL,
'nullable' => TRUE,
'default' => NULL,
'nullable' => FALSE,
'default' => '1',
'position' => 3,
'commentaire' => NULL,
],
......
......@@ -80,6 +80,33 @@ return [
],
],
'DOSSIER_CHAMP_AUTRE_TYPE' => [
[
'ID' => 1,
'CODE' => 'texte',
'LIBELLE' => 'Champ texte simple',
],
[
'ID' => 2,
'CODE' => 'select-fixe',
'LIBELLE' => 'Liste déroulante à valeurs constantes',
],
[
'ID' => 3,
'CODE' => 'select-sql',
'LIBELLE' => 'Liste déroulante basée sur une requête SQL',
],
],
'DOSSIER_CHAMP_AUTRE' => [
['ID' => 1, 'DOSSIER_CHAMP_AUTRE_TYPE_ID' => 1],
['ID' => 2, 'DOSSIER_CHAMP_AUTRE_TYPE_ID' => 1],
['ID' => 3, 'DOSSIER_CHAMP_AUTRE_TYPE_ID' => 1],
['ID' => 4, 'DOSSIER_CHAMP_AUTRE_TYPE_ID' => 1],
['ID' => 5, 'DOSSIER_CHAMP_AUTRE_TYPE_ID' => 1],
],
'ETAT_VOLUME_HORAIRE' => [
[
'ID' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment