Last change
on this file since 47933 was
47933,
checked in by jluc@…, 10 years ago
|
Corrections + compatibilité avec les forums objet (spip3 ou forum_objets_spip2)
|
File size:
854 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | global $tables_principales; |
---|
4 | global $tables_auxiliaires; |
---|
5 | global $tables_jointures; |
---|
6 | global $table_des_tables; |
---|
7 | |
---|
8 | $spip_breves_articles = array( |
---|
9 | "id_auto" => "int(11) NOT NULL", |
---|
10 | "id_breve" => "int(11) NOT NULL", |
---|
11 | "id_article" => "int(11) NOT NULL" |
---|
12 | ); |
---|
13 | |
---|
14 | // Le champ id_auto est créé mais ne sert pas . Spip génére automatiquement la PRIMARY KEY avec l'option auto_increment |
---|
15 | // Sans PRIMARY KEY impossible de créer la table |
---|
16 | // Pour le plugin, il ne faut PAS que id_breve ou id_article soit en auto_increment |
---|
17 | // Donc on créé un champ id_auto qui sert juste à être mis en PRIMARY KEY |
---|
18 | $spip_breves_articles_key = array( |
---|
19 | "PRIMARY KEY" => "id_auto" |
---|
20 | ); |
---|
21 | |
---|
22 | $tables_principales['spip_breves_articles'] = array( |
---|
23 | 'field' => &$spip_breves_articles, |
---|
24 | 'key' => &$spip_breves_articles_key |
---|
25 | ); |
---|
26 | |
---|
27 | $table_des_tables['breves_articles'] = 'breves_articles'; |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.