upgrade.php
changeset 142 ca9118d9c0f2
parent 129 0b5244001799
child 145 6f0bbf88c325
child 148 42c6c83b8a00
equal deleted inserted replaced
141:13a43f08ffe1 142:ca9118d9c0f2
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.0.1 (Loch Ness)
     5  * Version 1.0.2 (Coblynau)
     6  * upgrade.php - upgrade script
     6  * upgrade.php - upgrade script
     7  * Copyright (C) 2006-2007 Dan Fuhry
     7  * Copyright (C) 2006-2007 Dan Fuhry
     8  *
     8  *
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    59 
    59 
    60 // SCRIPT CONFIGURATION
    60 // SCRIPT CONFIGURATION
    61 // Everything related to versions goes here!
    61 // Everything related to versions goes here!
    62 
    62 
    63 // Valid versions to upgrade from
    63 // Valid versions to upgrade from
    64 $valid_versions = Array('1.0b1', '1.0b2', '1.0b3', '1.0b4', '1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1');
    64 $valid_versions = Array('1.0b1', '1.0b2', '1.0b3', '1.0b4', '1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1', '1.0.1.1');
    65 
    65 
    66 // Basically a list of dependencies, which should be resolved automatically
    66 // Basically a list of dependencies, which should be resolved automatically
    67 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
    67 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
    68 // normally be required (for whatever reason) then you would add a custom version number to the array under key '1.0b1'.
    68 // normally be required (for whatever reason) then you would add a custom version number to the array under key '1.0b1'.
    69 $deps_list = Array(
    69 $deps_list = Array(
    72     '1.0b3' => Array('1.0b4'),
    72     '1.0b3' => Array('1.0b4'),
    73     '1.0b4' => Array('1.0RC1'),
    73     '1.0b4' => Array('1.0RC1'),
    74     '1.0RC1' => Array('1.0RC2'),
    74     '1.0RC1' => Array('1.0RC2'),
    75     '1.0RC2' => Array('1.0RC3'),
    75     '1.0RC2' => Array('1.0RC3'),
    76     '1.0RC3' => Array('1.0'),
    76     '1.0RC3' => Array('1.0'),
    77     '1.0' => Array('1.0.1')
    77     '1.0' => Array('1.0.1'),
       
    78     '1.0.1' => Array('1.0.1.1')
    78   );
    79   );
    79 $this_version   = '1.0.1.1';
    80 $this_version   = '1.0.2';
    80 $func_list = Array(
    81 $func_list = Array(
    81     '1.0' => Array('u_1_0_1_update_del_votes'),
    82     '1.0' => Array('u_1_0_1_update_del_votes'),
    82     '1.0b4' => Array('u_1_0_RC1_update_user_ids', 'u_1_0_RC1_add_admins_to_group', 'u_1_0_RC1_alter_files_table', 'u_1_0_RC1_destroy_session_cookie', 'u_1_0_RC1_set_contact_email', 'u_1_0_RC1_update_page_text'), // ,
    83     '1.0b4' => Array('u_1_0_RC1_update_user_ids', 'u_1_0_RC1_add_admins_to_group', 'u_1_0_RC1_alter_files_table', 'u_1_0_RC1_destroy_session_cookie', 'u_1_0_RC1_set_contact_email', 'u_1_0_RC1_update_page_text'), // ,
    83     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    84     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    84     '1.0RC3' => Array('u_1_0_RC3_make_users_extra')
    85     '1.0RC3' => Array('u_1_0_RC3_make_users_extra')