Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function resa_declarer_tables_principales($tables_principales) |
---|
4 | { |
---|
5 | $spip_resa_calendrier = array( |
---|
6 | 'id_calendrier' => 'int(11) NOT NULL AUTO_INCREMENT', |
---|
7 | 'id_article' => 'int(11) NOT NULL' |
---|
8 | ) ; |
---|
9 | |
---|
10 | $spip_resa_calendrier_key = array( |
---|
11 | 'PRIMARY KEY' => 'id_calendrier' |
---|
12 | ) ; |
---|
13 | |
---|
14 | $tables_principales['spip_resa_calendrier'] = array( |
---|
15 | 'field' => &$spip_resa_calendrier, |
---|
16 | 'key' => &$spip_resa_calendrier_key |
---|
17 | ) ; |
---|
18 | |
---|
19 | $spip_resa_reservation = array( |
---|
20 | 'id_reservation' => 'int(11) NOT NULL AUTO_INCREMENT', |
---|
21 | 'id_calendrier' => 'int(11) NOT NULL', |
---|
22 | 'ts' => 'int(10) NOT NULL' |
---|
23 | ) ; |
---|
24 | |
---|
25 | $spip_resa_reservation_key = array( |
---|
26 | 'PRIMARY KEY' => 'id_reservation', |
---|
27 | ) ; |
---|
28 | |
---|
29 | $tables_principales['spip_resa_reservation'] = array( |
---|
30 | 'field' => &$spip_resa_reservation, |
---|
31 | 'key' => &$spip_resa_reservation_key |
---|
32 | ) ; |
---|
33 | |
---|
34 | return $tables_principales ; |
---|
35 | } |
---|
36 | |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.