From 167c3e4c1b55f62d49fba98da3464e9a51e66ddf Mon Sep 17 00:00:00 2001
From: saxmatt
query:
$sql
error:
$error
First we’re going to add excerpt functionality...
+First we’re going to add excerpt, post, and password functionality...
query($query); +$query = "ALTER TABLE $tableposts ADD `comment_status` ENUM('open','closed') NOT NULL, +ADD `ping_status` ENUM('open','closed') NOT NULL, +ADD post_password varchar(20) NOT NULL;"; +$q = $wpdb->query($query); ?>That went well! Now let's clean up the b2 database structure a bit...
@@ -222,7 +212,7 @@ $q = mysql_query($query) or mysql_doh("Doh, add excerpts.", $query, mysql_error( query($query); ?>One down, two to go...
@@ -230,7 +220,15 @@ $q = mysql_query($query) or mysql_doh("Can't drop the ID index. Did you already query($query); + +?> + +So far so good.
+query($query); ?> @@ -240,7 +238,7 @@ $q = mysql_query($query) or mysql_doh("Can't drop ID from the settings table. Do $query = "ALTER TABLE $tableusers DROP INDEX `ID`"; -$q = mysql_query($query) or mysql_doh("Couldn't drop index from users table.", $query, mysql_error()); +$q = $wpdb->query($query); ?>