Changeset 1502 in ExiteCMS for trunk/includes/dbsetup_include.php


Ignore:
Timestamp:
07/02/08 08:50:05 (4 years ago)
Author:
hverton
Message:

updated the setup procedure with the latest database changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/dbsetup_include.php

    r1496 r1502  
    22//---------------------------------------------------------- 
    33// ExiteCMS file : dbsetup_include.php 
    4 // Date generated  : `01/07/2008 22:00` 
    5 // Generated by : `WanWizard` 
     4// Date generated  : `02/07/2008 08:40` 
    65//---------------------------------------------------------- 
    76 
    8 define('CMS_VERSION', '7.20'); 
     7define('CMS_VERSION', '7.10'); 
    98define('CMS_REVISION', '1500'); 
    109 
     
    228227    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('locale', 'English')"); 
    229228    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('login_expire', '7200')"); 
    230     $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('login_extended_expire', '604800')"); 
     229    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('login_extended_expire', '84600')"); 
    231230    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('longdate', '%m/%d/%Y %H:%M:%S')"); 
    232231    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('maintenance', '0')"); 
     
    234233    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('maintenance_message', '')"); 
    235234    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('max_users', '0')"); 
    236     $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('max_users_datestamp', '1193029685')"); 
     235    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('max_users_datestamp', '0')"); 
    237236    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('navbar_range', '5')"); 
    238237    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('newsletter_email', 'noreply@example.com')"); 
     
    265264    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_name', 'ExiteCMSid')"); 
    266265    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('shortdate', '%m/%d/%Y')"); 
    267     $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteemail', 'webmaster@example.com')"); 
     266    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteemail', 'website@example.com')"); 
    268267    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteintro', '<center>\r\n<b>This website is under construction at the moment!</b><br /><br />\r\nExiteCMS v7.2 ©2008 Exite BV.</center>')"); 
    269268    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('sitelinks_localisation', 'none')"); 
     
    286285    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('unread_threshold', '90')"); 
    287286    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('validation_method', 'image')"); 
    288     $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('version', '7.20')"); 
     287    $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('version', '7.10')"); 
    289288} 
    290289 
     
    850849 
    851850// 
    852 // Code to create table `reporting` 
    853 // 
    854 $result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."reporting"); 
    855 $result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."reporting ( 
     851// Code to create table `reports` 
     852// 
     853$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."reports"); 
     854$result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."reports ( 
    856855  `report_id` smallint(5) unsigned NOT NULL auto_increment, 
    857   `report_ident` varchar(4) NOT NULL default '', 
    858   `report_title` varchar(50) NOT NULL default '', 
    859   `report_active` tinyint(1) NOT NULL default 0, 
    860   `report_groups` text NOT NULL, 
    861   `report_code` text NOT NULL, 
     856  `report_mod_id` smallint(5) unsigned NOT NULL default 0, 
     857  `report_name` varchar(100) NOT NULL default '', 
     858  `report_title` varchar(100) NOT NULL default '', 
     859  `report_version` varchar(10) NOT NULL default '0', 
     860  `report_active` tinyint(1) unsigned NOT NULL default 0, 
     861  `report_visibility` tinyint(3) NOT NULL default 0, 
    862862  PRIMARY KEY  (`report_id`) 
    863863) ENGINE=MyISAM;"); 
    864864if (!$result) { 
    865865    $fail = "1"; 
    866     $failed[] = "reporting : ".mysql_error(); 
     866    $failed[] = "reports : ".mysql_error(); 
     867} 
     868 
     869// 
     870// Code to create table `searches` 
     871// 
     872$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."searches"); 
     873$result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."searches ( 
     874  `search_id` smallint(5) unsigned NOT NULL auto_increment, 
     875  `search_mod_id` smallint(5) unsigned NOT NULL default 0, 
     876  `search_name` varchar(100) NOT NULL default '', 
     877  `search_title` varchar(100) NOT NULL default '', 
     878  `search_version` varchar(10) NOT NULL default '0', 
     879  `search_visibility` tinyint(3) NOT NULL default 0, 
     880  PRIMARY KEY  (`search_id`) 
     881) ENGINE=MyISAM;"); 
     882if (!$result) { 
     883    $fail = "1"; 
     884    $failed[] = "searches : ".mysql_error(); 
    867885} 
    868886 
Note: See TracChangeset for help on using the changeset viewer.