$query = "ALTER TABLE `" . $table_prefix . "posts_to_bookmark`
ADD COLUMN `ping_status` INT(1) NOT NULL
AFTER `<TABLE COLUMN BEFORE THIS COLUMN>`";
Saya yakin Anda harus memiliki ADD COLUMN
dan gunakan AFTER
, bukan BEFORE
.
Jika Anda ingin menempatkan kolom di awal tabel, gunakan FIRST
pernyataan:
$query = "ALTER TABLE `" . $table_prefix . "posts_to_bookmark`
ADD COLUMN `ping_status` INT(1) NOT NULL
FIRST";
http://dev.mysql.com/doc/refman /5.1/en/alter-table.html