Last change
on this file since 48855 was
48855,
checked in by eric@…, 10 years ago
|
Plus besoin d'effacer la meta car elle n'est plus créée !
|
-
Property svn:eol-style set to
native
|
File size:
770 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | include_spip('base/create'); |
---|
4 | |
---|
5 | function svp_upgrade($nom_meta_base_version, $version_cible){ |
---|
6 | $current_version = "0.0"; |
---|
7 | |
---|
8 | if (isset($GLOBALS['meta'][$nom_meta_base_version])) |
---|
9 | $current_version = $GLOBALS['meta'][$nom_meta_base_version]; |
---|
10 | |
---|
11 | if ($current_version=="0.0") { |
---|
12 | include_spip('base/svp_declarer'); |
---|
13 | creer_base(); |
---|
14 | ecrire_meta($nom_meta_base_version,$current_version=$version_cible); |
---|
15 | |
---|
16 | spip_log('INSTALLATION BDD', 'svp_actions.' . _LOG_INFO); |
---|
17 | } |
---|
18 | } |
---|
19 | |
---|
20 | function svp_vider_tables($nom_meta_base_version) { |
---|
21 | sql_drop_table("spip_depots"); |
---|
22 | sql_drop_table("spip_plugins"); |
---|
23 | sql_drop_table("spip_depots_plugins"); |
---|
24 | sql_drop_table("spip_paquets"); |
---|
25 | effacer_meta($nom_meta_base_version); |
---|
26 | |
---|
27 | spip_log('DESINSTALLATION BDD', 'svp_actions.' . _LOG_INFO); |
---|
28 | } |
---|
29 | |
---|
30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.