make sql work on both db types

This commit is contained in:
Habeas Codice 2015-02-13 02:57:28 -08:00
parent b340fd5095
commit 46964a8a88

View file

@ -1560,7 +1560,7 @@ function update_r1135() {
}
function update_r1136() {
$r1 = q("alter table item add item_unseen smallint(1) not null default '0' ");
$r1 = q("alter table item add item_unseen smallint not null default '0' ");
$r2 = q("create index item_unseen on item ( item_unseen ) ");
$r3 = q("update item set item_unseen = 1 where ( item_flags & 2 ) > 0 ");