- Fixed: #134: Column headers (defined in includes/definitions.php) were not marked with T() for translation
- Change: Required custom select fields will no longer show the empty option (these fields could not be saved as empty, though, because they wouldn't validate -- this is purely an interface change)
- Change: The description (first comment) is now stored in a separate variable from the rest of the comments, allowing for one to move its placement in templates/showreport.tpl
+- Fixed: #148: The permission mask fields were smallint, when they should be int to hold larger int values that permission masks have
1.2.2
===============================
(
usergroupid int unsigned NOT NULL,
fieldid int unsigned NOT NULL,
- mask smallint unsigned NOT NULL,
+ mask int unsigned NOT NULL,
PRIMARY KEY (usergroupid, fieldid)
);";
(
usergroupid int unsigned NOT NULL,
productid int unsigned NOT NULL,
- mask smallint NOT NULL,
+ mask int NOT NULL,
PRIMARY KEY (usergroupid, productid)
);";
|| ###################################################################
\*=====================================================================*/
-define('STOP_MARK', 1);
+define('STOP_MARK', 2);
define('ACTIVE_SITE', 'upgrade18.php');
require_once('./global.php');
if ($bugsys->in['mark'] == 1)
{
?>
+<h1>Schema Fixes</h1>
+
+<p>Making minor schema changes so that permission mask fields are large enough for the high integer values.</p>
+<?php
+
+ $db->query("ALTER TABLE " . TABLE_PREFIX . "bugfieldpermission CHANGE mask mask int unsigned NOT NULL DEFAULT 0");
+ $db->query("ALTER TABLE " . TABLE_PREFIX . "permission CHANGE mask mask int unsigned NOT NULL DEFAULT 0");
+}
+
+// ###################################################################
+
+if ($bugsys->in['mark'] == 2)
+{
+?>
<h1>Version Number Change</h1>
<p>This step finishes the upgrade by inreasing your version number.</p>