Skip to content

Commit

Permalink
Oracle: fix ORA-01442 error during installation
Browse files Browse the repository at this point in the history
Oracle does not allow to add a NOT NULL constraint if it's already
present; it will just keep the existing constraint if a column is
altered without mentioning NOT NULL. MySQL on the other hand will
actually remove the constraint if NOT NULL is not specified again.
  • Loading branch information
dregad committed Apr 19, 2014
1 parent ff0a9c7 commit 18a9a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/schema.php
Expand Up @@ -731,7 +731,7 @@ function installer_db_now() {
text XL NULL DEFAULT NULL " ) );
$upgrade[186] = array( 'UpdateFunction', 'update_history_long_custom_fields' );
$upgrade[187] = array( 'CreateIndexSQL', array( 'idx_bug_id', db_get_table( 'bug_monitor' ), 'bug_id' ) );
$upgrade[188] = array( 'AlterColumnSQL', array( db_get_table( 'project' ), "inherit_global L NOTNULL DEFAULT '0'" ) );
$upgrade[189] = array( 'AlterColumnSQL', array( db_get_table( 'project_hierarchy' ), "inherit_parent L NOTNULL DEFAULT '0'" ) );
$upgrade[188] = array( 'AlterColumnSQL', array( db_get_table( 'project' ), "inherit_global L $t_notnull DEFAULT '0'" ) );
$upgrade[189] = array( 'AlterColumnSQL', array( db_get_table( 'project_hierarchy' ), "inherit_parent L $t_notnull DEFAULT '0'" ) );

# Release marker: 1.3.0

0 comments on commit 18a9a6a

Please sign in to comment.