From 57ef43afdbb2dcd7a890d2d0f2606a17bfc5a715 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 10 May 2009 18:56:49 +0000 Subject: Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ) --- core/helpers/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') 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(); -- cgit v1.2.3