Changeset 1355 for trunk/wp-admin/install-helper.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/install-helper.php
r601 r1355 132 132 133 133 //check_column('wp_links', 'link_description', 'mediumtext'); 134 //if (check_column($ tablecomments, 'comment_author', 'tinytext'))134 //if (check_column($wpdb->comments, 'comment_author', 'tinytext')) 135 135 // echo "ok\n"; 136 136 $error_count = 0; 137 $tablename = $ tablelinks;137 $tablename = $wpdb->links; 138 138 // check the column 139 if (!check_column($ tablelinks, 'link_description', 'varchar(255)'))139 if (!check_column($wpdb->links, 'link_description', 'varchar(255)')) 140 140 { 141 $ddl = "ALTER TABLE $ tablelinks MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";141 $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' "; 142 142 $q = $wpdb->query($ddl); 143 143 } 144 if (check_column($ tablelinks, 'link_description', 'varchar(255)')) {144 if (check_column($wpdb->links, 'link_description', 'varchar(255)')) { 145 145 $res .= $tablename . ' - ok <br />'; 146 146 } else {
Note: See TracChangeset
for help on using the changeset viewer.