Last change
on this file since 107378 was
107378,
checked in by erational@…, 3 years ago
|
Nettoyage pour respecter les conventions d'installation / désinstallation de SPIP 3
|
File size:
943 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined("_ECRIRE_INC_VERSION")) { |
---|
3 | return; |
---|
4 | } |
---|
5 | |
---|
6 | spip_log("hit A","___xxx"); |
---|
7 | |
---|
8 | function pb_selection_declarer_tables_interfaces($interface){ |
---|
9 | spip_log("hit B","___xxx"); |
---|
10 | $interface['table_des_tables']['pb_selection'] = 'pb_selection'; |
---|
11 | return $interface; |
---|
12 | } |
---|
13 | |
---|
14 | |
---|
15 | /** |
---|
16 | * Table auxilaire spip_pb_selection |
---|
17 | * |
---|
18 | * @param array $tables_auxiliaires |
---|
19 | * @return array |
---|
20 | */ |
---|
21 | function pb_selection_declarer_tables_auxiliaires($tables_auxiliaires){ |
---|
22 | spip_log("hit C","___xxx"); |
---|
23 | $spip_pb_selection = array( |
---|
24 | "id_rubrique" => "bigint(21) NOT NULL", |
---|
25 | "id_article" => "bigint(21) NOT NULL", |
---|
26 | "ordre" => "bigint(21) NOT NULL", |
---|
27 | "maj" => "TIMESTAMP" |
---|
28 | ); |
---|
29 | |
---|
30 | $spip_pb_selection_key = array( |
---|
31 | "PRIMARY KEY" => "id_rubrique, id_article" |
---|
32 | ); |
---|
33 | |
---|
34 | $tables_auxiliaires['spip_pb_selection'] = |
---|
35 | array( |
---|
36 | 'field' => &$spip_pb_selection, |
---|
37 | 'key' => &$spip_pb_selection_key, |
---|
38 | ); |
---|
39 | |
---|
40 | return $tables_auxiliaires; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.