Skip to content
Snippets Groups Projects
Commit ac3b446e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #40341 by Cvbge: corrected the default column value.

parent e6b78e28
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -177,12 +177,12 @@ function update_fix_schema_version() {
switch ($GLOBALS['db_type']) {
case 'pgsql':
$ret = array();
db_add_column($ret, 'system', 'schema_version', 'smallint', array('not null' => TRUE, 'default' => 1));
db_add_column($ret, 'system', 'schema_version', 'smallint', array('not null' => TRUE, 'default' => 0));
break;
case 'mysql':
case 'mysqli':
db_query('ALTER TABLE {system} ADD schema_version smallint(2) unsigned not null');
db_query('ALTER TABLE {system} ADD schema_version smallint(2) unsigned not null default 0');
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment