diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-10 18:56:49 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-10 18:56:49 +0000 |
commit | 57ef43afdbb2dcd7a890d2d0f2606a17bfc5a715 (patch) | |
tree | aa26cdb88a78cd5a281a902b722720dec56031ee /core/helpers | |
parent | ce137d7bdc8621caca60a14b6ff071333b64f8b3 (diff) |
Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ)
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index be3aeba9..3965e3c2 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -423,7 +423,7 @@ class access_Core { $db = Database::instance(); $field = "{$perm_name}_{$group->id}"; $cache_table = $perm_name == "view" ? "items" : "access_caches"; - $db->query("ALTER TABLE {{$cache_table}} ADD `$field` TINYINT(2) NOT NULL DEFAULT 0"); + $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->update("access_intents", array($field => 0), array("item_id" => 1)); ORM::factory("access_intent")->clear_cache(); |