Project

General

Profile

1
CREATE TABLE IF NOT EXISTS `tree` (
2
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
3
  `parent_id` bigint(20) unsigned NOT NULL,
4
  `position` bigint(20) unsigned NOT NULL,
5
  `left` bigint(20) unsigned NOT NULL,
6
  `right` bigint(20) unsigned NOT NULL,
7
  `level` bigint(20) unsigned NOT NULL,
8
  `title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
9
  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
10
  PRIMARY KEY (`id`)
11
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
12

    
13
INSERT INTO `tree` (`id`, `parent_id`, `position`, `left`, `right`, `level`, `title`, `type`) VALUES
14
(1, 0, 2, 1, 14, 0, 'ROOT', ''),
15
(2, 1, 0, 2, 11, 1, 'C:', 'drive'),
16
(3, 2, 0, 3, 6, 2, '_demo', 'folder'),
17
(4, 3, 0, 4, 5, 3, 'index.html', 'default'),
18
(5, 2, 1, 7, 10, 2, '_docs', 'folder'),
19
(6, 1, 1, 12, 13, 1, 'D:', 'drive'),
20
(12, 5, 0, 8, 9, 3, 'zmei.html', 'default');
(1-1/8)