Browse Source

maj de fichier base pour que les tables se créer

master
pierrekuhn87 5 months ago
parent
commit
21c0195440
  1. 71
      base/spipr_educ_base.php
  2. 1
      paquet.xml

71
base/spipr_educ_base.php

@ -1,21 +1,52 @@
<?php
$SpiprEduckey = array("PRIMARY KEY" => "id");
$SpiprEducTable = array(
"id" => "INTEGER NOT NULL AUTO_INCREMENT",
"nom" => "TEXT NOT NULL",
"type" => "TEXT NOT NULL",
"nom_sauvegarde" => "TEXT NOT NULL",
"parametre1" => "TEXT NOT NULL",
"parametre2" => "TEXT NOT NULL",
"parametre3" => "TEXT NOT NULL",
"parametre4" => "TEXT NOT NULL",
"parametre5" => "TEXT NOT NULL",
"parametre6" => "TEXT NOT NULL",
"parametre7" => "TEXT NOT NULL",
"parametre8" => "TEXT NOT NULL",
"parametre9" => "TEXT NOT NULL",
"parametre10" => "TEXT NOT NULL"
);
$GLOBALS['tables_principales']['spip_spipr_educ'] = array('field' => &$SpiprEducTable, 'key' => &$SpiprEduckey);
?>
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Interfaces des tables documents pour le compilateur
*
* @param array $interfaces
* @return array
*/
function spipr_educ_declarer_tables_interfaces($interfaces) {
$interfaces['table_des_tables']['spipr_educ'] = '_spipr_educ';
return $interfaces;
}
/**
* Table principale spip_documents et spip_types_documents
*
* @param array $tables_principales
* @return array
*/
function spipr_educ_declarer_tables_principales($tables_principales) {
$SpiprEducTable = array(
"id" => "INTEGER NOT NULL AUTO_INCREMENT",
"nom" => "TEXT NOT NULL",
"type" => "TEXT NOT NULL",
"nom_sauvegarde" => "TEXT NOT NULL",
"parametre1" => "TEXT NOT NULL",
"parametre2" => "TEXT NOT NULL",
"parametre3" => "TEXT NOT NULL",
"parametre4" => "TEXT NOT NULL",
"parametre5" => "TEXT NOT NULL",
"parametre6" => "TEXT NOT NULL",
"parametre7" => "TEXT NOT NULL",
"parametre8" => "TEXT NOT NULL",
"parametre9" => "TEXT NOT NULL",
"parametre10" => "TEXT NOT NULL"
);
$SpiprEduckey = array(
'PRIMARY KEY' => 'id'
);
$tables_principales['spip_spipr_educ'] =
array('field' => &$SpiprEducTable, 'key' => &$SpiprEduckey);
return $tables_principales;
}

1
paquet.xml

@ -26,6 +26,7 @@
<utilise nom="adaptive_images" compatibilite="[1.12.2;[" />
<utilise nom="albums" compatibilite="[2.3.0;[" />
<pipeline nom="declarer_tables_interfaces" inclure="base/spipr_educ_base.php" />
<pipeline nom="declarer_tables_principales" inclure="base/spipr_educ_base.php" />
<pipeline nom="affiche_milieu" inclure="spipr_educ_pipeline.php" />

Loading…
Cancel
Save