fix another pgsql update error
This commit is contained in:
parent
b223e364c6
commit
feb5d3af89
@ -8,7 +8,7 @@ class _1211 {
|
|||||||
|
|
||||||
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
||||||
$r1 = q("ALTER TABLE channel ADD channel_active timestamp NOT NULL DEFAULT '0001-01-01 00:00:00' ");
|
$r1 = q("ALTER TABLE channel ADD channel_active timestamp NOT NULL DEFAULT '0001-01-01 00:00:00' ");
|
||||||
$r2 = q("create index \"channel_active\" on channel_active (\"channel_active\")");
|
$r2 = q("create index \"channel_active_idx\" on channel (\"channel_active\")");
|
||||||
|
|
||||||
$r = ($r1 && $r2);
|
$r = ($r1 && $r2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user