Commit 837a314d authored by Dries's avatar Dries

- Patch #82823 by dww: fixed improper quoting in db_add_column(). Fixes PostgreSQL upgrade path.

parent ce7adc62
......@@ -3237,7 +3237,7 @@ function system_update_1006() {
$ret[] = update_sql("ALTER TABLE {blocks} ADD title VARCHAR(64) NOT NULL DEFAULT ''");
break;
case 'pgsql':
db_add_column($ret, 'blocks', 'title', 'varchar(64)', array('default' => '', 'not null' => TRUE));
db_add_column($ret, 'blocks', 'title', 'varchar(64)', array('default' => "''", 'not null' => TRUE));
break;
}
// Migrate custom block titles to new column.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment