1 | <?php |
---|
2 | //include_spip('base/serial'); // pour eviter une reinit posterieure des tables modifiees |
---|
3 | |
---|
4 | global $tables_principales; |
---|
5 | global $tables_auxiliaires; |
---|
6 | |
---|
7 | // déclaration de toutes les tables |
---|
8 | |
---|
9 | // bloclibre |
---|
10 | $spip_arty_bloclibre = array( |
---|
11 | "id_bloc_libre" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
12 | "titre" => "VARCHAR(255) NOT NULL", |
---|
13 | "contenu" => "TEXT", |
---|
14 | "lien" => "VARCHAR(255) NOT NULL", |
---|
15 | ); |
---|
16 | |
---|
17 | $spip_arty_bloclibre_key = array( |
---|
18 | "PRIMARY KEY" => "id_bloc_libre" |
---|
19 | ); |
---|
20 | |
---|
21 | $tables_principales['spip_arty_bloclibre'] = array('field' => &$spip_arty_bloclibre, 'key' => &$spip_arty_bloclibre_key); |
---|
22 | |
---|
23 | // bloclibreassoc |
---|
24 | $spip_arty_bloclibreassoc = array( |
---|
25 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
26 | "type" => "VARCHAR(255) NOT NULL", |
---|
27 | "id_bloc_libre" => "bigint(21)", |
---|
28 | "id" => "bigint(21)", |
---|
29 | "lang" => "VARCHAR(32)", |
---|
30 | ); |
---|
31 | |
---|
32 | $spip_arty_bloclibreassoc_key = array( |
---|
33 | "PRIMARY KEY" => "id_assoc" |
---|
34 | ); |
---|
35 | |
---|
36 | $tables_principales['spip_arty_bloclibreassoc'] = array('field' => &$spip_arty_bloclibreassoc, 'key' => &$spip_arty_bloclibreassoc_key); |
---|
37 | |
---|
38 | // gabarit_ordre |
---|
39 | $spip_arty_gabarit_ordre = array( |
---|
40 | "id_bloc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
41 | "nom" => "VARCHAR(255) NOT NULL", |
---|
42 | "ordre" => "bigint(21)", |
---|
43 | "conteneur" => "bigint(21)", |
---|
44 | "gabarit" => "VARCHAR(255) NOT NULL", |
---|
45 | "param" => "TEXT NOT NULL", |
---|
46 | ); |
---|
47 | |
---|
48 | $spip_arty_gabarit_ordre_key = array( |
---|
49 | "PRIMARY KEY" => "id_bloc" |
---|
50 | ); |
---|
51 | |
---|
52 | $tables_principales['spip_arty_gabarit_ordre'] = array('field' => &$spip_arty_gabarit_ordre, 'key' => &$spip_arty_gabarit_ordre_key); |
---|
53 | |
---|
54 | // gabarit perso |
---|
55 | $spip_arty_gabarit_perso = array( |
---|
56 | "id" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
57 | "nom" => "VARCHAR(255)", |
---|
58 | "type" => "VARCHAR(255)", |
---|
59 | "donnees" => "TEXT", |
---|
60 | ); |
---|
61 | |
---|
62 | $spip_arty_gabarit_perso_key = array( |
---|
63 | "PRIMARY KEY" => "id" |
---|
64 | ); |
---|
65 | |
---|
66 | $tables_principales['spip_arty_gabarit_perso'] = array('field' => &$spip_arty_gabarit_perso, 'key' => &$spip_arty_gabarit_perso_key); |
---|
67 | |
---|
68 | // gabarit assoc |
---|
69 | $spip_arty_gabaritassoc = array( |
---|
70 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
71 | "gabarit" => "VARCHAR(255) NOT NULL", |
---|
72 | "id" => "bigint(21)", |
---|
73 | "type" => "VARCHAR(255)", |
---|
74 | ); |
---|
75 | |
---|
76 | $spip_arty_gabaritassoc_key = array( |
---|
77 | "PRIMARY KEY" => "id_assoc" |
---|
78 | ); |
---|
79 | |
---|
80 | $tables_principales['spip_arty_gabaritassoc'] = array('field' => &$spip_arty_gabaritassoc, 'key' => &$spip_arty_gabaritassoc_key); |
---|
81 | |
---|
82 | // menu |
---|
83 | $spip_arty_menu = array( |
---|
84 | "id_menu" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
85 | "ordre" => "bigint(21)", |
---|
86 | "type" => "VARCHAR(255) NOT NULL", |
---|
87 | "id" => "bigint(21)", |
---|
88 | "langue" => "VARCHAR(255)", |
---|
89 | "id_parent" => "bigint(21)", |
---|
90 | "type_parent" => "VARCHAR(255)", |
---|
91 | "nom" => "VARCHAR(255)", |
---|
92 | "url" => "TEXT", |
---|
93 | ); |
---|
94 | |
---|
95 | $spip_arty_menu_key = array( |
---|
96 | "PRIMARY KEY" => "id_menu" |
---|
97 | ); |
---|
98 | |
---|
99 | $tables_principales['spip_arty_menu'] = array('field' => &$spip_arty_menu, 'key' => &$spip_arty_menu_key); |
---|
100 | |
---|
101 | // paramassoc |
---|
102 | $spip_arty_paramassoc = array( |
---|
103 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
104 | "param" => "VARCHAR(255) NOT NULL", |
---|
105 | "id_article" => "bigint(21)", |
---|
106 | "id_rubrique" => "bigint(21)", |
---|
107 | ); |
---|
108 | |
---|
109 | $spip_arty_paramassoc_key = array( |
---|
110 | "PRIMARY KEY" => "id_assoc" |
---|
111 | ); |
---|
112 | |
---|
113 | $tables_principales['spip_arty_paramassoc'] = array('field' => &$spip_arty_paramassoc, 'key' => &$spip_arty_paramassoc_key); |
---|
114 | |
---|
115 | // parametres |
---|
116 | $spip_arty_parametres = array( |
---|
117 | "id_parametre" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
118 | "parametre" => "VARCHAR(255) UNIQUE NOT NULL", |
---|
119 | "valeur" => "TEXT", |
---|
120 | "valeur2" => "TEXT", |
---|
121 | "valeur3" => "TEXT" |
---|
122 | ); |
---|
123 | |
---|
124 | $spip_arty_parametres_key = array( |
---|
125 | "PRIMARY KEY" => "id_parametre" |
---|
126 | ); |
---|
127 | |
---|
128 | $tables_principales['spip_arty_parametres'] = array('field' => &$spip_arty_parametres, 'key' => &$spip_arty_parametres_key); |
---|
129 | |
---|
130 | // themeassoc |
---|
131 | $spip_arty_themeassoc = array( |
---|
132 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
133 | "theme" => "VARCHAR(255) NOT NULL", |
---|
134 | "id" => "bigint(21)", |
---|
135 | "type" => "VARCHAR(255) NOT NULL" |
---|
136 | ); |
---|
137 | |
---|
138 | $spip_arty_themeassoc_key = array( |
---|
139 | "PRIMARY KEY" => "id_assoc" |
---|
140 | ); |
---|
141 | |
---|
142 | $tables_principales['spip_arty_themeassoc'] = array('field' => &$spip_arty_themeassoc, 'key' => &$spip_arty_themeassoc_key); |
---|
143 | |
---|
144 | |
---|
145 | // association aux tables spip |
---|
146 | global $table_des_tables; |
---|
147 | $table_des_tables['arty_bloclibre'] = 'arty_bloclibre'; |
---|
148 | $table_des_tables['arty_bloclibreassoc'] = 'arty_bloclibreassoc'; |
---|
149 | $table_des_tables['arty_gabarit_ordre'] = 'arty_gabarit_ordre'; |
---|
150 | $table_des_tables['arty_gabarit_perso'] = 'arty_gabarit_perso'; |
---|
151 | $table_des_tables['arty_gabaritassoc'] = 'arty_gabaritassoc'; |
---|
152 | $table_des_tables['arty_menu'] = 'arty_menu'; |
---|
153 | $table_des_tables['arty_paramassoc'] = 'arty_paramassoc'; |
---|
154 | $table_des_tables['arty_parametres'] = 'arty_parametres'; |
---|
155 | $table_des_tables['arty_themeassoc'] = 'arty_themeassoc'; |
---|
156 | |
---|
157 | ?> |
---|