mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Added another alternate name constraint
This commit is contained in:
parent
3833ac5c83
commit
d24b8b68a9
@ -218,6 +218,22 @@ class sql {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
$this->query( array(
|
||||||
|
"mysql" => "ALTER TABLE user_options DROP INDEX option_name;",
|
||||||
|
"pgsql" => "ALTER TABLE user_options DROP CONSTRAINT option_name;",
|
||||||
|
), array(), 0, "rowCount", "exception" );
|
||||||
|
} catch( Exception $error ) {
|
||||||
|
|
||||||
|
//The access field is not there.
|
||||||
|
//echo var_export( $error->getMessage(), $access_query );
|
||||||
|
$status_updates["nameusername_user_option_constraint"] = array(
|
||||||
|
"error_message" => $error->getMessage(),
|
||||||
|
"dev_message" => "No constriant to remove."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$update_query = array(
|
$update_query = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user