database structure update

This commit is contained in:
following
2013-05-28 16:57:16 +02:00
parent bc3454598d
commit b6f4603c61
3 changed files with 21 additions and 1 deletions

View File

@@ -165,4 +165,12 @@
) ENGINE=MyISAM DEFAULT CHARSET=utf8");
}
function dbv_107() // sync of table definitions, developer and production system
{
sql("ALTER TABLE `caches` MODIFY `meta_last_modified` datetime NOT NULL COMMENT 'via Trigger (stat_caches, gk_item_waypoint)'");
sql("ALTER TABLE `countries` MODIFY `en` varchar(128) NOT NULL");
if (!sql_index_exists('cache_reports', 'userid'))
sql("ALTER TABLE `cache_reports` ADD INDEX `userid` (`userid`)");
}
?>