schema change to support channel move (a completely different operation than channel clone)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1163 );
|
||||
define( 'UPDATE_VERSION' , 1164 );
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -2003,4 +2003,19 @@ function update_r1162() {
|
||||
if($r1 && $r2)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
function update_r1163() {
|
||||
|
||||
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
||||
$r1 = q("alter table channel add channel_moved text not null default '' ");
|
||||
$r2 = q("create index \"channel_channel_moved\" on channel (\"channel_moved\") ");
|
||||
}
|
||||
else {
|
||||
$r1 = q("alter table channel add channel_moved char(255) not null default '' ");
|
||||
$r2 = q("alter table channel add index ( channel_moved ) ");
|
||||
}
|
||||
if($r1 && $r2)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
Reference in New Issue
Block a user