diff options
author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-06-23 10:14:38 +0200 |
---|---|---|
committer | Romain LE DISEZ <romain.git@ledisez.net> | 2009-06-23 10:14:38 +0200 |
commit | de28b0350e5d5bf6c3e1eb5a9531298b08fd7cba (patch) | |
tree | a95b967a028483da0dba7934fd2761e2cd6c5257 | |
parent | d601ab93beb9be2cc69d64fa04803ff3c3601c3a (diff) |
Use an integer because the code store 0 and 1. It
improves compatiblity with PgSQL.
The right way is to use a BOOLEAN and code with
booleans. The values would be :
- FALSE => deny
- TRUE => allow
- NULL => unknow
-rw-r--r-- | modules/gallery/helpers/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php index c48f0b79..7b01058c 100644 --- a/modules/gallery/helpers/access.php +++ b/modules/gallery/helpers/access.php @@ -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` BOOLEAN DEFAULT NULL"); + $db->query("ALTER TABLE {access_intents} ADD `$field` SMALLINT DEFAULT NULL"); $db->update("access_intents", array($field => 0), array("item_id" => 1)); ORM::factory("access_intent")->clear_cache(); } |