Make WordPress Core


Ignore:
Timestamp:
09/04/2004 10:04:19 PM (21 years ago)
Author:
saxmatt
Message:

Remove optiontypes table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r1594 r1595  
    343343$q = $wpdb->query($query);
    344344
    345 // $query = "DROP TABLE IF EXISTS $tableoptiontypes";
    346 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$tableoptiontypes\" in the database.");
    347 
    348 $query = "
    349 CREATE TABLE $wpdb->optiontypes (
    350   optiontype_id int(11) NOT NULL auto_increment,
    351   optiontype_name varchar(64) NOT NULL,
    352   PRIMARY KEY (optiontype_id)
    353 )
    354 ";
    355 $q = $wpdb->query($query);
    356 
    357 
    358 // $query = "DROP TABLE IF EXISTS $tableoptiongroups";
    359 // $q = mysql_query($query) or mysql_doh("doh, can't drop the table \"$tableoptiongroups\" in the database.");
    360 
    361345$query = "
    362346CREATE TABLE $wpdb->optiongroups (
     
    385369
    386370$option_data = array(
    387 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (1, 'integer')",
    388 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (2, 'boolean')",
    389 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (3, 'string')",
    390 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (4, 'date')",
    391 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (5, 'select')",
    392 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (6, 'range')",
    393 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (7, 'sqlselect')",
    394 "INSERT INTO $wpdb->optiontypes (optiontype_id, optiontype_name) VALUES (8, 'float')",
    395 
    396371//base options from b2cofig
    397372"INSERT INTO $wpdb->options (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(1,'siteurl', 3, '$guessurl', 'siteurl is your blog\'s URL: for example, \'http://example.com/wordpress\' (no trailing slash !)', 8, 30)",
Note: See TracChangeset for help on using the changeset viewer.