Commit 5edec7c6 authored by greggles's avatar greggles

bug #410358 by Alex_Tutubalin: database scheme update code (PgSQL)

parent 6604b0da
......@@ -62,6 +62,7 @@ function comment_notify_schema() {
'description' => 'A boolean indicator for whether or not a notification for the comment has been sent: 1 means yes, 0 means no.',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
'disp-width' => '11'),
),
'primary key' => array('cid'),
......@@ -268,7 +269,7 @@ function comment_notify_update_6003() {
function comment_notify_update_6004() {
$ret = array();
db_add_field($ret, 'comment_notify', 'notified', array('type' => 'int', 'size' => 'small', 'unsigned' => TRUE, 'not null' => TRUE));
db_add_field($ret, 'comment_notify', 'notified', array('type' => 'int', 'size' => 'small', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0));
// Set the value in the notified column to 1 for all existing records.
$ret[] = update_sql('UPDATE {comment_notify} SET notified = 1');
......
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