[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / noiZetier / base / noizetier_tables.php
diff --git a/www/plugins/auto/noiZetier/base/noizetier_tables.php b/www/plugins/auto/noiZetier/base/noizetier_tables.php
new file mode 100644 (file)
index 0000000..1770347
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+// Sécurité
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+function noizetier_declarer_tables_interfaces($interface){
+       // 'spip_' dans l'index de $tables_principales
+       $interface['table_des_tables']['noisettes']='noisettes';
+       
+       return $interface;
+}
+
+function noizetier_declarer_tables_principales($tables_principales){
+       //-- Table noisettes -----------------------------------------------------------
+       $noisettes = array(
+               "id_noisette" => "bigint(21) NOT NULL",
+               "rang" => "smallint DEFAULT '1' NOT NULL",
+               "type" => "tinytext DEFAULT '' NOT NULL",
+               "composition" => "tinytext DEFAULT '' NOT NULL",
+               "bloc" => "tinytext DEFAULT '' NOT NULL",
+               "noisette" => "tinytext DEFAULT '' NOT NULL",
+               "parametres" => "text DEFAULT '' NOT NULL",
+               "css" => "tinytext DEFAULT '' NOT NULL"
+       );
+       
+       $noisettes_cles = array(
+               "PRIMARY KEY" => "id_noisette"
+       );
+       
+       $tables_principales['spip_noisettes'] = array(
+               'field' => &$noisettes,
+               'key' => &$noisettes_cles
+       );
+       
+       return $tables_principales;
+}
+
+?>