return success for postgres
This commit is contained in:
parent
dd3ec468f6
commit
2d9fe72215
@ -5,12 +5,11 @@ namespace Zotlabs\Update;
|
||||
class _1224 {
|
||||
|
||||
function run() {
|
||||
if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
|
||||
q("START TRANSACTION");
|
||||
|
||||
if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
|
||||
$r1 = q("ALTER TABLE hubloc ALTER hubloc_id_url SET DEFAULT ''");
|
||||
$r2 = q("ALTER TABLE hubloc ALTER hubloc_site_id SET DEFAULT ''");
|
||||
}
|
||||
|
||||
if($r1 && $r2) {
|
||||
q("COMMIT");
|
||||
@ -19,6 +18,10 @@ class _1224 {
|
||||
|
||||
q("ROLLBACK");
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user