Changeset 484 for trunk/lib/Version.inc.php
- Timestamp:
- Jul 30, 2014 10:43:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Version.inc.php
r479 r484 40 40 41 41 // A place to keep an object instance for the singleton pattern. 42 pr ivatestatic $instance = null;42 protected static $instance = null; 43 43 44 44 // Configuration of this object. 45 pr ivate$_params = array(45 protected $_params = array( 46 46 'max_qty' => 100, // Never have more than this many versions of each record. 47 47 'min_qty' => 25, // Keep at least this many versions of each record. … … 57 57 58 58 // Auth_SQL object from which to access a current user_id. 59 pr ivate$_auth;59 protected $_auth; 60 60 61 61 /** … … 116 116 } 117 117 $db->query("CREATE TABLE IF NOT EXISTS " . $db->escapeString($this->getParam('db_table')) . " ( 118 version_id INT NOT NULLAUTO_INCREMENT,118 version_id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, 119 119 record_table VARCHAR(255) NOT NULL DEFAULT '', 120 120 record_key VARCHAR(255) NOT NULL DEFAULT '', … … 126 126 saved_by_user_id SMALLINT(11) NOT NULL DEFAULT '0', 127 127 version_datetime DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 128 PRIMARY KEY (version_id),129 128 KEY record_table (record_table), 130 129 KEY record_key (record_key),
Note: See TracChangeset
for help on using the changeset viewer.