upgrade.php
changeset 326 ab66d6d1f1f4
parent 310 199b9708f4a2
parent 322 5f1cd51bf1be
child 345 4ccdfeee9a11
equal deleted inserted replaced
314:474f8be55943 326:ab66d6d1f1f4
     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.1.1
     5  * Version 1.0.3 (Dyrad)
     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.
    68 
    68 
    69 // SCRIPT CONFIGURATION
    69 // SCRIPT CONFIGURATION
    70 // Everything related to versions goes here!
    70 // Everything related to versions goes here!
    71 
    71 
    72 // Valid versions to upgrade from
    72 // Valid versions to upgrade from
    73 $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', '1.0.2b1', '1.0.2', 'Stable1.0ToUnstable1.1');
    73 $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', '1.0.2b1', '1.0.2', '1.0.3', 'Stable1.0ToUnstable1.1');
    74 
    74 
    75 // Basically a list of dependencies, which should be resolved automatically
    75 // Basically a list of dependencies, which should be resolved automatically
    76 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
    76 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
    77 // normally be required (for whatever reason) then you would add a custom version number to the array under key '1.0b1'.
    77 // normally be required (for whatever reason) then you would add a custom version number to the array under key '1.0b1'.
    78 $deps_list = Array(
    78 $deps_list = Array(
    84     '1.0RC2' => Array('1.0RC3'),
    84     '1.0RC2' => Array('1.0RC3'),
    85     '1.0RC3' => Array('1.0'),
    85     '1.0RC3' => Array('1.0'),
    86     '1.0' => Array('1.0.1'),
    86     '1.0' => Array('1.0.1'),
    87     '1.0.1' => Array('1.0.1.1'),
    87     '1.0.1' => Array('1.0.1.1'),
    88     '1.0.1.1' => Array('1.0.2b1'),
    88     '1.0.1.1' => Array('1.0.2b1'),
    89     '1.0.2b1' => Array('Stable1.0ToUnstable1.1'),
    89     '1.0.2b1' => Array('1.0.2'),
       
    90     '1.0.2' => Array('Stable1.0ToUnstable1.1'),
    90     'Stable1.0ToUnstable1.1' => Array('1.1.1')
    91     'Stable1.0ToUnstable1.1' => Array('1.1.1')
    91   );
    92   );
    92 $this_version   = '1.1.1';
    93 $this_version   = '1.1.1';
    93 $func_list = Array(
    94 $func_list = Array(
    94     '1.0' => Array('u_1_0_1_update_del_votes'),
    95     '1.0' => Array('u_1_0_1_update_del_votes'),