DROP TABLE IF EXISTS `cmf_modules`;
CREATE TABLE `cms_modules` (
`module_id` int(11) NOT NULL auto_increment,
`module_name` varchar(127) default NULL,
`module_position` int(11) default NULL,
`module_type` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`module_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1000143 /*!40101 DEFAULT CHARSET=utf8 */;
INSERT INTO `cmf_modules` VALUES
(12, 'structure', 0, 0),
(13, 'textblocks', 4, 0),
(14, 'articles', 1, 0),
(16, 'news', 2, 0),
(17, 'administrators', 11, 0),
(23, 'polls', 3, 0),
(20, 'banners', 6, 0),
(21, 'contacts', 9, 0),
(22, 'sitemap', 10, 0),
(28, 'forum', 12, 0),
(29, 'users', 13, 0),
(31, 'modules', 14, 0),
(32, 'releases', 15, 0),
(33, 'boards', 16, 0),
(34, 'action', 17, 0),
(35, 'print', 18, 0),
(36, 'cat', 19, 0),
(37, 'shop', 20, 0),
(38, 'products', 21, 0),
(39, 'search', 23, 0),
(40, 'sales', 24, 0),
(1000142, 'catalogs', 500, 0);[/spoil]
то можно ли в движке через скрипт
сделать принудительную авто-инкрементацию
чтоб она приняла такой вид:
[spoil]DROP TABLE IF EXISTS `cmf_modules`;
CREATE TABLE `cms_modules` (
`module_id` int(11) NOT NULL auto_increment,
`module_name` varchar(127) default NULL,
`module_position` int(11) default NULL,
`module_type` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`module_id`)
) ENGINE=MyISAM AUTO_INCREMENT=25 /*!40101 DEFAULT CHARSET=utf8 */;
INSERT INTO `cmf_modules` VALUES
(2, 'structure', 0, 0),
(3, 'textblocks', 4, 0),
(4, 'articles', 1, 0),
(6, 'news', 2, 0),
(7, 'administrators', 11, 0),
(8, 'polls', 3, 0),
(9, 'banners', 6, 0),
(10, 'contacts', 9, 0),
(11, 'sitemap', 10, 0),
(12, 'forum', 12, 0),
(13, 'users', 13, 0),
(14, 'modules', 14, 0),
(15, 'releases', 15, 0),
(16, 'boards', 16, 0),
(17, 'action', 17, 0),
(18, 'print', 18, 0),
(19, 'cat', 19, 0),
(20, 'shop', 20, 0),
(21, 'products', 21, 0),
(22, 'search', 23, 0),
(23, 'sales', 24, 0),
(24, 'catalogs', 500, 0);