mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-07 15:40:41 -04:00
Go back to the upstream version because we choosed to use real booleans.
This commit is contained in:
@@ -426,7 +426,7 @@ class access_Core {
|
||||
$field = "{$perm_name}_{$group->id}";
|
||||
$cache_table = $perm_name == "view" ? "items" : "access_caches";
|
||||
$db->query("ALTER TABLE {{$cache_table}} ADD `$field` SMALLINT NOT NULL DEFAULT 0");
|
||||
$db->query("ALTER TABLE {access_intents} ADD `$field` SMALLINT DEFAULT NULL");
|
||||
$db->query("ALTER TABLE {access_intents} ADD `$field` BOOLEAN DEFAULT NULL");
|
||||
$db->update("access_intents", array($field => 0), array("item_id" => 1));
|
||||
ORM::factory("access_intent")->clear_cache();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user