CREATE TABLE IF NOT EXISTS `mediatree` (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`parent_id` BIGINT(20) NOT NULL,
`position` BIGINT(20) NOT NULL,
`lft` BIGINT(20) NOT NULL,
`rgt` BIGINT(20) NOT NULL,
`level` BIGINT(20) NOT NULL,
`title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`type` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
NSERT INTO `mediatree` (`id`, `parent_id`, `position`, `lft`, `rgt`, `level`, `title`, `type`) VALUES
(1, 0, 2, 1, 14, 0, 'ROOT', ''),
(2, 1, 0, 2, 11, 1, 'C:', 'drive'),
(3, 2, 0, 3, 6, 2, '_demo', 'folder'),
(4, 3, 0, 4, 5, 3, 'index.html', 'default'),
(5, 2, 1, 7, 10, 2, '_docs', 'folder'),
(6, 1, 1, 12, 13, 1, 'D:', 'drive'),
(7, 5, 0, 8, 9, 3, 'zmei.html', 'default');
Bookmarks