Commit 823ef13e00d0ffa020259d9e4a09057e01cd2716

Authored by andryeyev
1 parent b2c9eed9

Обьеденил в одну базу

db-migration/artbox_db (1).sql renamed to db-migration/artbox_db.sql
1 -- phpMyAdmin SQL Dump 1 -- phpMyAdmin SQL Dump
2 --- version 4.0.10 2 +-- version 4.0.10.10
3 -- http://www.phpmyadmin.net 3 -- http://www.phpmyadmin.net
4 -- 4 --
5 --- Хост: 127.0.0.1:3306  
6 --- Время создания: Ноя 19 2015 г., 13:53  
7 --- Версия сервера: 5.5.38-log  
8 --- Версия PHP: 5.5.13 5 +-- Host: 127.0.0.1:3306
  6 +-- Generation Time: Nov 26, 2015 at 01:28 PM
  7 +-- Server version: 5.5.45
  8 +-- PHP Version: 5.5.28
9 9
10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 SET time_zone = "+00:00"; 11 SET time_zone = "+00:00";
@@ -17,13 +17,13 @@ SET time_zone = "+00:00"; @@ -17,13 +17,13 @@ SET time_zone = "+00:00";
17 /*!40101 SET NAMES utf8 */; 17 /*!40101 SET NAMES utf8 */;
18 18
19 -- 19 --
20 --- База данных: `artbox_db` 20 +-- Database: `artbox_db`
21 -- 21 --
22 22
23 -- -------------------------------------------------------- 23 -- --------------------------------------------------------
24 24
25 -- 25 --
26 --- Структура таблицы `attribute` 26 +-- Table structure for table `attribute`
27 -- 27 --
28 28
29 CREATE TABLE IF NOT EXISTS `attribute` ( 29 CREATE TABLE IF NOT EXISTS `attribute` (
@@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS `attribute` ( @@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS `attribute` (
38 -- -------------------------------------------------------- 38 -- --------------------------------------------------------
39 39
40 -- 40 --
41 --- Структура таблицы `attribute_group` 41 +-- Table structure for table `attribute_group`
42 -- 42 --
43 43
44 CREATE TABLE IF NOT EXISTS `attribute_group` ( 44 CREATE TABLE IF NOT EXISTS `attribute_group` (
@@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group` ( @@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group` (
52 -- -------------------------------------------------------- 52 -- --------------------------------------------------------
53 53
54 -- 54 --
55 --- Структура таблицы `attribute_group_lang` 55 +-- Table structure for table `attribute_group_lang`
56 -- 56 --
57 57
58 CREATE TABLE IF NOT EXISTS `attribute_group_lang` ( 58 CREATE TABLE IF NOT EXISTS `attribute_group_lang` (
@@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group_lang` ( @@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group_lang` (
66 -- -------------------------------------------------------- 66 -- --------------------------------------------------------
67 67
68 -- 68 --
69 --- Структура таблицы `attribute_lang` 69 +-- Table structure for table `attribute_lang`
70 -- 70 --
71 71
72 CREATE TABLE IF NOT EXISTS `attribute_lang` ( 72 CREATE TABLE IF NOT EXISTS `attribute_lang` (
@@ -81,66 +81,7 @@ CREATE TABLE IF NOT EXISTS `attribute_lang` ( @@ -81,66 +81,7 @@ CREATE TABLE IF NOT EXISTS `attribute_lang` (
81 -- -------------------------------------------------------- 81 -- --------------------------------------------------------
82 82
83 -- 83 --
84 --- Структура таблицы `auth_assignment`  
85 ---  
86 -  
87 -CREATE TABLE IF NOT EXISTS `auth_assignment` (  
88 - `item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,  
89 - `user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,  
90 - `created_at` int(11) DEFAULT NULL,  
91 - PRIMARY KEY (`item_name`,`user_id`)  
92 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;  
93 -  
94 --- --------------------------------------------------------  
95 -  
96 ---  
97 --- Структура таблицы `auth_item`  
98 ---  
99 -  
100 -CREATE TABLE IF NOT EXISTS `auth_item` (  
101 - `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,  
102 - `type` int(11) NOT NULL,  
103 - `description` text COLLATE utf8_unicode_ci,  
104 - `rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,  
105 - `data` text COLLATE utf8_unicode_ci,  
106 - `created_at` int(11) DEFAULT NULL,  
107 - `updated_at` int(11) DEFAULT NULL,  
108 - PRIMARY KEY (`name`),  
109 - KEY `rule_name` (`rule_name`),  
110 - KEY `idx-auth_item-type` (`type`)  
111 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;  
112 -  
113 --- --------------------------------------------------------  
114 -  
115 ---  
116 --- Структура таблицы `auth_item_child`  
117 ---  
118 -  
119 -CREATE TABLE IF NOT EXISTS `auth_item_child` (  
120 - `parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL,  
121 - `child` varchar(64) COLLATE utf8_unicode_ci NOT NULL,  
122 - PRIMARY KEY (`parent`,`child`),  
123 - KEY `child` (`child`)  
124 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;  
125 -  
126 --- --------------------------------------------------------  
127 -  
128 ---  
129 --- Структура таблицы `auth_rule`  
130 ---  
131 -  
132 -CREATE TABLE IF NOT EXISTS `auth_rule` (  
133 - `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,  
134 - `data` text COLLATE utf8_unicode_ci,  
135 - `created_at` int(11) DEFAULT NULL,  
136 - `updated_at` int(11) DEFAULT NULL,  
137 - PRIMARY KEY (`name`)  
138 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;  
139 -  
140 --- --------------------------------------------------------  
141 -  
142 ---  
143 --- Структура таблицы `feature` 84 +-- Table structure for table `feature`
144 -- 85 --
145 86
146 CREATE TABLE IF NOT EXISTS `feature` ( 87 CREATE TABLE IF NOT EXISTS `feature` (
@@ -155,7 +96,7 @@ CREATE TABLE IF NOT EXISTS `feature` ( @@ -155,7 +96,7 @@ CREATE TABLE IF NOT EXISTS `feature` (
155 -- -------------------------------------------------------- 96 -- --------------------------------------------------------
156 97
157 -- 98 --
158 --- Структура таблицы `feature_group` 99 +-- Table structure for table `feature_group`
159 -- 100 --
160 101
161 CREATE TABLE IF NOT EXISTS `feature_group` ( 102 CREATE TABLE IF NOT EXISTS `feature_group` (
@@ -167,7 +108,7 @@ CREATE TABLE IF NOT EXISTS `feature_group` ( @@ -167,7 +108,7 @@ CREATE TABLE IF NOT EXISTS `feature_group` (
167 -- -------------------------------------------------------- 108 -- --------------------------------------------------------
168 109
169 -- 110 --
170 --- Структура таблицы `feature_group_lang` 111 +-- Table structure for table `feature_group_lang`
171 -- 112 --
172 113
173 CREATE TABLE IF NOT EXISTS `feature_group_lang` ( 114 CREATE TABLE IF NOT EXISTS `feature_group_lang` (
@@ -181,7 +122,7 @@ CREATE TABLE IF NOT EXISTS `feature_group_lang` ( @@ -181,7 +122,7 @@ CREATE TABLE IF NOT EXISTS `feature_group_lang` (
181 -- -------------------------------------------------------- 122 -- --------------------------------------------------------
182 123
183 -- 124 --
184 --- Структура таблицы `feature_lang` 125 +-- Table structure for table `feature_lang`
185 -- 126 --
186 127
187 CREATE TABLE IF NOT EXISTS `feature_lang` ( 128 CREATE TABLE IF NOT EXISTS `feature_lang` (
@@ -196,7 +137,7 @@ CREATE TABLE IF NOT EXISTS `feature_lang` ( @@ -196,7 +137,7 @@ CREATE TABLE IF NOT EXISTS `feature_lang` (
196 -- -------------------------------------------------------- 137 -- --------------------------------------------------------
197 138
198 -- 139 --
199 --- Структура таблицы `image` 140 +-- Table structure for table `image`
200 -- 141 --
201 142
202 CREATE TABLE IF NOT EXISTS `image` ( 143 CREATE TABLE IF NOT EXISTS `image` (
@@ -209,28 +150,35 @@ CREATE TABLE IF NOT EXISTS `image` ( @@ -209,28 +150,35 @@ CREATE TABLE IF NOT EXISTS `image` (
209 -- -------------------------------------------------------- 150 -- --------------------------------------------------------
210 151
211 -- 152 --
212 --- Структура таблицы `language` 153 +-- Table structure for table `language`
213 -- 154 --
214 155
215 CREATE TABLE IF NOT EXISTS `language` ( 156 CREATE TABLE IF NOT EXISTS `language` (
216 `language_id` int(2) NOT NULL AUTO_INCREMENT, 157 `language_id` int(2) NOT NULL AUTO_INCREMENT,
217 `lang_code` varchar(4) NOT NULL, 158 `lang_code` varchar(4) NOT NULL,
218 - `is_default` tinyint(1) NOT NULL, 159 + `is_default` bit(1) NOT NULL DEFAULT b'0',
  160 + `language_name` varchar(255) NOT NULL,
  161 + `active` bit(1) NOT NULL DEFAULT b'0',
219 PRIMARY KEY (`language_id`) 162 PRIMARY KEY (`language_id`)
220 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; 163 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
221 164
222 -- 165 --
223 --- Дамп данных таблицы `language` 166 +-- Dumping data for table `language`
224 -- 167 --
225 168
226 -INSERT INTO `language` (`language_id`, `lang_code`, `is_default`) VALUES  
227 -(1, 'uk', 0),  
228 -(2, 'ru', 1); 169 +INSERT INTO `language` (`language_id`, `lang_code`, `is_default`, `language_name`, `active`) VALUES
  170 +(1, 'ua', b'0', 'Українська', b'1'),
  171 +(2, 'ru', b'1', 'Русский', b'1'),
  172 +(3, 'us', b'0', 'English', b'0'),
  173 +(4, 'fr', b'0', 'Français', b'0'),
  174 +(5, 'lt', b'0', 'Lietùvių', b'0'),
  175 +(6, 'lv', b'0', 'Latviešu', b'0'),
  176 +(7, 'de', b'0', 'Deutsch', b'0');
229 177
230 -- -------------------------------------------------------- 178 -- --------------------------------------------------------
231 179
232 -- 180 --
233 --- Структура таблицы `language_lang` 181 +-- Table structure for table `language_lang`
234 -- 182 --
235 183
236 CREATE TABLE IF NOT EXISTS `language_lang` ( 184 CREATE TABLE IF NOT EXISTS `language_lang` (
@@ -241,7 +189,7 @@ CREATE TABLE IF NOT EXISTS `language_lang` ( @@ -241,7 +189,7 @@ CREATE TABLE IF NOT EXISTS `language_lang` (
241 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 189 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
242 190
243 -- 191 --
244 --- Дамп данных таблицы `language_lang` 192 +-- Dumping data for table `language_lang`
245 -- 193 --
246 194
247 INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES 195 INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES
@@ -251,7 +199,7 @@ INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES @@ -251,7 +199,7 @@ INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES
251 -- -------------------------------------------------------- 199 -- --------------------------------------------------------
252 200
253 -- 201 --
254 --- Структура таблицы `menu` 202 +-- Table structure for table `menu`
255 -- 203 --
256 204
257 CREATE TABLE IF NOT EXISTS `menu` ( 205 CREATE TABLE IF NOT EXISTS `menu` (
@@ -272,7 +220,7 @@ CREATE TABLE IF NOT EXISTS `menu` ( @@ -272,7 +220,7 @@ CREATE TABLE IF NOT EXISTS `menu` (
272 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; 220 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
273 221
274 -- 222 --
275 --- Дамп данных таблицы `menu` 223 +-- Dumping data for table `menu`
276 -- 224 --
277 225
278 INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_open`, `menu_location_id`, `sortorder`, `name`, `url`) VALUES 226 INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_open`, `menu_location_id`, `sortorder`, `name`, `url`) VALUES
@@ -292,7 +240,7 @@ INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_ope @@ -292,7 +240,7 @@ INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_ope
292 -- -------------------------------------------------------- 240 -- --------------------------------------------------------
293 241
294 -- 242 --
295 --- Структура таблицы `menu_location` 243 +-- Table structure for table `menu_location`
296 -- 244 --
297 245
298 CREATE TABLE IF NOT EXISTS `menu_location` ( 246 CREATE TABLE IF NOT EXISTS `menu_location` (
@@ -302,7 +250,7 @@ CREATE TABLE IF NOT EXISTS `menu_location` ( @@ -302,7 +250,7 @@ CREATE TABLE IF NOT EXISTS `menu_location` (
302 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; 250 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
303 251
304 -- 252 --
305 --- Дамп данных таблицы `menu_location` 253 +-- Dumping data for table `menu_location`
306 -- 254 --
307 255
308 INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES 256 INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES
@@ -313,7 +261,7 @@ INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES @@ -313,7 +261,7 @@ INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES
313 -- -------------------------------------------------------- 261 -- --------------------------------------------------------
314 262
315 -- 263 --
316 --- Структура таблицы `menu_location_lang` 264 +-- Table structure for table `menu_location_lang`
317 -- 265 --
318 266
319 CREATE TABLE IF NOT EXISTS `menu_location_lang` ( 267 CREATE TABLE IF NOT EXISTS `menu_location_lang` (
@@ -324,7 +272,7 @@ CREATE TABLE IF NOT EXISTS `menu_location_lang` ( @@ -324,7 +272,7 @@ CREATE TABLE IF NOT EXISTS `menu_location_lang` (
324 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 272 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
325 273
326 -- 274 --
327 --- Дамп данных таблицы `menu_location_lang` 275 +-- Dumping data for table `menu_location_lang`
328 -- 276 --
329 277
330 INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `lang_id`) VALUES 278 INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `lang_id`) VALUES
@@ -335,7 +283,7 @@ INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `la @@ -335,7 +283,7 @@ INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `la
335 -- -------------------------------------------------------- 283 -- --------------------------------------------------------
336 284
337 -- 285 --
338 --- Структура таблицы `migration` 286 +-- Table structure for table `migration`
339 -- 287 --
340 288
341 CREATE TABLE IF NOT EXISTS `migration` ( 289 CREATE TABLE IF NOT EXISTS `migration` (
@@ -345,7 +293,7 @@ CREATE TABLE IF NOT EXISTS `migration` ( @@ -345,7 +293,7 @@ CREATE TABLE IF NOT EXISTS `migration` (
345 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 293 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
346 294
347 -- 295 --
348 --- Дамп данных таблицы `migration` 296 +-- Dumping data for table `migration`
349 -- 297 --
350 298
351 INSERT INTO `migration` (`version`, `apply_time`) VALUES 299 INSERT INTO `migration` (`version`, `apply_time`) VALUES
@@ -356,7 +304,7 @@ INSERT INTO `migration` (`version`, `apply_time`) VALUES @@ -356,7 +304,7 @@ INSERT INTO `migration` (`version`, `apply_time`) VALUES
356 -- -------------------------------------------------------- 304 -- --------------------------------------------------------
357 305
358 -- 306 --
359 --- Структура таблицы `module` 307 +-- Table structure for table `module`
360 -- 308 --
361 309
362 CREATE TABLE IF NOT EXISTS `module` ( 310 CREATE TABLE IF NOT EXISTS `module` (
@@ -367,7 +315,7 @@ CREATE TABLE IF NOT EXISTS `module` ( @@ -367,7 +315,7 @@ CREATE TABLE IF NOT EXISTS `module` (
367 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; 315 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
368 316
369 -- 317 --
370 --- Дамп данных таблицы `module` 318 +-- Dumping data for table `module`
371 -- 319 --
372 320
373 INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES 321 INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES
@@ -376,7 +324,7 @@ INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES @@ -376,7 +324,7 @@ INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES
376 -- -------------------------------------------------------- 324 -- --------------------------------------------------------
377 325
378 -- 326 --
379 --- Структура таблицы `module_function` 327 +-- Table structure for table `module_function`
380 -- 328 --
381 329
382 CREATE TABLE IF NOT EXISTS `module_function` ( 330 CREATE TABLE IF NOT EXISTS `module_function` (
@@ -386,7 +334,7 @@ CREATE TABLE IF NOT EXISTS `module_function` ( @@ -386,7 +334,7 @@ CREATE TABLE IF NOT EXISTS `module_function` (
386 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; 334 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
387 335
388 -- 336 --
389 --- Дамп данных таблицы `module_function` 337 +-- Dumping data for table `module_function`
390 -- 338 --
391 339
392 INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VALUES 340 INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VALUES
@@ -395,7 +343,7 @@ INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VAL @@ -395,7 +343,7 @@ INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VAL
395 -- -------------------------------------------------------- 343 -- --------------------------------------------------------
396 344
397 -- 345 --
398 --- Структура таблицы `module_function_lang` 346 +-- Table structure for table `module_function_lang`
399 -- 347 --
400 348
401 CREATE TABLE IF NOT EXISTS `module_function_lang` ( 349 CREATE TABLE IF NOT EXISTS `module_function_lang` (
@@ -406,7 +354,7 @@ CREATE TABLE IF NOT EXISTS `module_function_lang` ( @@ -406,7 +354,7 @@ CREATE TABLE IF NOT EXISTS `module_function_lang` (
406 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 354 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
407 355
408 -- 356 --
409 --- Дамп данных таблицы `module_function_lang` 357 +-- Dumping data for table `module_function_lang`
410 -- 358 --
411 359
412 INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title`, `lang_id`) VALUES 360 INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title`, `lang_id`) VALUES
@@ -415,7 +363,7 @@ INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title @@ -415,7 +363,7 @@ INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title
415 -- -------------------------------------------------------- 363 -- --------------------------------------------------------
416 364
417 -- 365 --
418 --- Структура таблицы `module_lang` 366 +-- Table structure for table `module_lang`
419 -- 367 --
420 368
421 CREATE TABLE IF NOT EXISTS `module_lang` ( 369 CREATE TABLE IF NOT EXISTS `module_lang` (
@@ -426,7 +374,7 @@ CREATE TABLE IF NOT EXISTS `module_lang` ( @@ -426,7 +374,7 @@ CREATE TABLE IF NOT EXISTS `module_lang` (
426 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 374 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
427 375
428 -- 376 --
429 --- Дамп данных таблицы `module_lang` 377 +-- Dumping data for table `module_lang`
430 -- 378 --
431 379
432 INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES 380 INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES
@@ -435,7 +383,7 @@ INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES @@ -435,7 +383,7 @@ INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES
435 -- -------------------------------------------------------- 383 -- --------------------------------------------------------
436 384
437 -- 385 --
438 --- Структура таблицы `option` 386 +-- Table structure for table `option`
439 -- 387 --
440 388
441 CREATE TABLE IF NOT EXISTS `option` ( 389 CREATE TABLE IF NOT EXISTS `option` (
@@ -450,7 +398,7 @@ CREATE TABLE IF NOT EXISTS `option` ( @@ -450,7 +398,7 @@ CREATE TABLE IF NOT EXISTS `option` (
450 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ; 398 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;
451 399
452 -- 400 --
453 --- Дамп данных таблицы `option` 401 +-- Dumping data for table `option`
454 -- 402 --
455 403
456 INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `parent_id`) VALUES 404 INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `parent_id`) VALUES
@@ -464,7 +412,7 @@ INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `par @@ -464,7 +412,7 @@ INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `par
464 -- -------------------------------------------------------- 412 -- --------------------------------------------------------
465 413
466 -- 414 --
467 --- Структура таблицы `option_lang` 415 +-- Table structure for table `option_lang`
468 -- 416 --
469 417
470 CREATE TABLE IF NOT EXISTS `option_lang` ( 418 CREATE TABLE IF NOT EXISTS `option_lang` (
@@ -478,7 +426,7 @@ CREATE TABLE IF NOT EXISTS `option_lang` ( @@ -478,7 +426,7 @@ CREATE TABLE IF NOT EXISTS `option_lang` (
478 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ; 426 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ;
479 427
480 -- 428 --
481 --- Дамп данных таблицы `option_lang` 429 +-- Dumping data for table `option_lang`
482 -- 430 --
483 431
484 INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES 432 INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES
@@ -502,7 +450,7 @@ INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES @@ -502,7 +450,7 @@ INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES
502 -- -------------------------------------------------------- 450 -- --------------------------------------------------------
503 451
504 -- 452 --
505 --- Структура таблицы `page` 453 +-- Table structure for table `page`
506 -- 454 --
507 455
508 CREATE TABLE IF NOT EXISTS `page` ( 456 CREATE TABLE IF NOT EXISTS `page` (
@@ -513,7 +461,7 @@ CREATE TABLE IF NOT EXISTS `page` ( @@ -513,7 +461,7 @@ CREATE TABLE IF NOT EXISTS `page` (
513 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ; 461 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
514 462
515 -- 463 --
516 --- Дамп данных таблицы `page` 464 +-- Dumping data for table `page`
517 -- 465 --
518 466
519 INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES 467 INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES
@@ -534,7 +482,7 @@ INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES @@ -534,7 +482,7 @@ INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES
534 -- -------------------------------------------------------- 482 -- --------------------------------------------------------
535 483
536 -- 484 --
537 --- Структура таблицы `page_lang` 485 +-- Table structure for table `page_lang`
538 -- 486 --
539 487
540 CREATE TABLE IF NOT EXISTS `page_lang` ( 488 CREATE TABLE IF NOT EXISTS `page_lang` (
@@ -547,7 +495,7 @@ CREATE TABLE IF NOT EXISTS `page_lang` ( @@ -547,7 +495,7 @@ CREATE TABLE IF NOT EXISTS `page_lang` (
547 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 495 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
548 496
549 -- 497 --
550 --- Дамп данных таблицы `page_lang` 498 +-- Dumping data for table `page_lang`
551 -- 499 --
552 500
553 INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `lang_id`) VALUES 501 INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `lang_id`) VALUES
@@ -568,7 +516,113 @@ INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `l @@ -568,7 +516,113 @@ INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `l
568 -- -------------------------------------------------------- 516 -- --------------------------------------------------------
569 517
570 -- 518 --
571 --- Структура таблицы `product` 519 +-- Table structure for table `parsel`
  520 +--
  521 +
  522 +CREATE TABLE IF NOT EXISTS `parsel` (
  523 + `parsel_id` int(3) NOT NULL AUTO_INCREMENT,
  524 + `parcel_folder` varchar(200) NOT NULL,
  525 + `sortorder` int(3) NOT NULL,
  526 + PRIMARY KEY (`parsel_id`)
  527 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  528 +
  529 +--
  530 +-- Dumping data for table `parsel`
  531 +--
  532 +
  533 +INSERT INTO `parsel` (`parsel_id`, `parcel_folder`, `sortorder`) VALUES
  534 +(1, 'import/goods', 1);
  535 +
  536 +-- --------------------------------------------------------
  537 +
  538 +--
  539 +-- Table structure for table `parsel_field`
  540 +--
  541 +
  542 +CREATE TABLE IF NOT EXISTS `parsel_field` (
  543 + `parsel_field_id` int(6) NOT NULL AUTO_INCREMENT,
  544 + `parsel_template_id` int(6) NOT NULL,
  545 + `table` varchar(30) NOT NULL,
  546 + `key` varchar(30) NOT NULL,
  547 + `title` varchar(30) NOT NULL,
  548 + `default_value` varchar(50) DEFAULT NULL,
  549 + `is_active` tinyint(1) NOT NULL DEFAULT '1',
  550 + `is_primary` tinyint(1) NOT NULL,
  551 + `if_not_exists` enum('show','add') NOT NULL DEFAULT 'show',
  552 + PRIMARY KEY (`parsel_field_id`)
  553 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  554 +
  555 +--
  556 +-- Dumping data for table `parsel_field`
  557 +--
  558 +
  559 +INSERT INTO `parsel_field` (`parsel_field_id`, `parsel_template_id`, `table`, `key`, `title`, `default_value`, `is_active`, `is_primary`, `if_not_exists`) VALUES
  560 +(1, 1, 'product', 'aricle', 'aricle', NULL, 1, 0, 'add');
  561 +
  562 +-- --------------------------------------------------------
  563 +
  564 +--
  565 +-- Table structure for table `parsel_lang`
  566 +--
  567 +
  568 +CREATE TABLE IF NOT EXISTS `parsel_lang` (
  569 + `parsel_id` int(3) NOT NULL,
  570 + `parsel_title` varchar(50) NOT NULL,
  571 + `lang_id` int(2) NOT NULL,
  572 + PRIMARY KEY (`parsel_id`,`lang_id`)
  573 +) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  574 +
  575 +--
  576 +-- Dumping data for table `parsel_lang`
  577 +--
  578 +
  579 +INSERT INTO `parsel_lang` (`parsel_id`, `parsel_title`, `lang_id`) VALUES
  580 +(1, 'Импорт товаров', 2);
  581 +
  582 +-- --------------------------------------------------------
  583 +
  584 +--
  585 +-- Table structure for table `parsel_template`
  586 +--
  587 +
  588 +CREATE TABLE IF NOT EXISTS `parsel_template` (
  589 + `parsel_template_id` int(3) NOT NULL AUTO_INCREMENT,
  590 + `parsel_template_name` varchar(50) NOT NULL,
  591 + `parsel_template_file` varchar(50) NOT NULL,
  592 + PRIMARY KEY (`parsel_template_id`)
  593 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  594 +
  595 +--
  596 +-- Dumping data for table `parsel_template`
  597 +--
  598 +
  599 +INSERT INTO `parsel_template` (`parsel_template_id`, `parsel_template_name`, `parsel_template_file`) VALUES
  600 +(1, 'gryby', 'gryby.csv');
  601 +
  602 +-- --------------------------------------------------------
  603 +
  604 +--
  605 +-- Table structure for table `parsel_template_lang`
  606 +--
  607 +
  608 +CREATE TABLE IF NOT EXISTS `parsel_template_lang` (
  609 + `parsel_template_id` int(3) NOT NULL,
  610 + `parsel_template_title` varchar(50) NOT NULL,
  611 + `lang_id` int(3) NOT NULL,
  612 + PRIMARY KEY (`parsel_template_id`,`lang_id`)
  613 +) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  614 +
  615 +--
  616 +-- Dumping data for table `parsel_template_lang`
  617 +--
  618 +
  619 +INSERT INTO `parsel_template_lang` (`parsel_template_id`, `parsel_template_title`, `lang_id`) VALUES
  620 +(1, 'Импорт товаров: Грибы', 2);
  621 +
  622 +-- --------------------------------------------------------
  623 +
  624 +--
  625 +-- Table structure for table `product`
572 -- 626 --
573 627
574 CREATE TABLE IF NOT EXISTS `product` ( 628 CREATE TABLE IF NOT EXISTS `product` (
@@ -592,7 +646,7 @@ CREATE TABLE IF NOT EXISTS `product` ( @@ -592,7 +646,7 @@ CREATE TABLE IF NOT EXISTS `product` (
592 -- -------------------------------------------------------- 646 -- --------------------------------------------------------
593 647
594 -- 648 --
595 --- Структура таблицы `product_attribute` 649 +-- Table structure for table `product_attribute`
596 -- 650 --
597 651
598 CREATE TABLE IF NOT EXISTS `product_attribute` ( 652 CREATE TABLE IF NOT EXISTS `product_attribute` (
@@ -622,7 +676,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute` ( @@ -622,7 +676,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute` (
622 -- -------------------------------------------------------- 676 -- --------------------------------------------------------
623 677
624 -- 678 --
625 --- Структура таблицы `product_attribute_combination` 679 +-- Table structure for table `product_attribute_combination`
626 -- 680 --
627 681
628 CREATE TABLE IF NOT EXISTS `product_attribute_combination` ( 682 CREATE TABLE IF NOT EXISTS `product_attribute_combination` (
@@ -635,7 +689,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute_combination` ( @@ -635,7 +689,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute_combination` (
635 -- -------------------------------------------------------- 689 -- --------------------------------------------------------
636 690
637 -- 691 --
638 --- Структура таблицы `product_feature` 692 +-- Table structure for table `product_feature`
639 -- 693 --
640 694
641 CREATE TABLE IF NOT EXISTS `product_feature` ( 695 CREATE TABLE IF NOT EXISTS `product_feature` (
@@ -650,7 +704,7 @@ CREATE TABLE IF NOT EXISTS `product_feature` ( @@ -650,7 +704,7 @@ CREATE TABLE IF NOT EXISTS `product_feature` (
650 -- -------------------------------------------------------- 704 -- --------------------------------------------------------
651 705
652 -- 706 --
653 --- Структура таблицы `product_image` 707 +-- Table structure for table `product_image`
654 -- 708 --
655 709
656 CREATE TABLE IF NOT EXISTS `product_image` ( 710 CREATE TABLE IF NOT EXISTS `product_image` (
@@ -663,7 +717,7 @@ CREATE TABLE IF NOT EXISTS `product_image` ( @@ -663,7 +717,7 @@ CREATE TABLE IF NOT EXISTS `product_image` (
663 -- -------------------------------------------------------- 717 -- --------------------------------------------------------
664 718
665 -- 719 --
666 --- Структура таблицы `template` 720 +-- Table structure for table `template`
667 -- 721 --
668 722
669 CREATE TABLE IF NOT EXISTS `template` ( 723 CREATE TABLE IF NOT EXISTS `template` (
@@ -674,7 +728,7 @@ CREATE TABLE IF NOT EXISTS `template` ( @@ -674,7 +728,7 @@ CREATE TABLE IF NOT EXISTS `template` (
674 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; 728 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
675 729
676 -- 730 --
677 --- Дамп данных таблицы `template` 731 +-- Dumping data for table `template`
678 -- 732 --
679 733
680 INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES 734 INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES
@@ -687,7 +741,7 @@ INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES @@ -687,7 +741,7 @@ INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES
687 -- -------------------------------------------------------- 741 -- --------------------------------------------------------
688 742
689 -- 743 --
690 --- Структура таблицы `template_lang` 744 +-- Table structure for table `template_lang`
691 -- 745 --
692 746
693 CREATE TABLE IF NOT EXISTS `template_lang` ( 747 CREATE TABLE IF NOT EXISTS `template_lang` (
@@ -698,7 +752,7 @@ CREATE TABLE IF NOT EXISTS `template_lang` ( @@ -698,7 +752,7 @@ CREATE TABLE IF NOT EXISTS `template_lang` (
698 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 752 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
699 753
700 -- 754 --
701 --- Дамп данных таблицы `template_lang` 755 +-- Dumping data for table `template_lang`
702 -- 756 --
703 757
704 INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES 758 INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES
@@ -711,7 +765,7 @@ INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES @@ -711,7 +765,7 @@ INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES
711 -- -------------------------------------------------------- 765 -- --------------------------------------------------------
712 766
713 -- 767 --
714 --- Структура таблицы `termin` 768 +-- Table structure for table `termin`
715 -- 769 --
716 770
717 CREATE TABLE IF NOT EXISTS `termin` ( 771 CREATE TABLE IF NOT EXISTS `termin` (
@@ -721,10 +775,10 @@ CREATE TABLE IF NOT EXISTS `termin` ( @@ -721,10 +775,10 @@ CREATE TABLE IF NOT EXISTS `termin` (
721 `is_default` int(1) NOT NULL, 775 `is_default` int(1) NOT NULL,
722 `page_id` int(6) NOT NULL, 776 `page_id` int(6) NOT NULL,
723 PRIMARY KEY (`termin_id`) 777 PRIMARY KEY (`termin_id`)
724 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=197 ; 778 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=215 ;
725 779
726 -- 780 --
727 --- Дамп данных таблицы `termin` 781 +-- Dumping data for table `termin`
728 -- 782 --
729 783
730 INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`) VALUES 784 INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`) VALUES
@@ -920,26 +974,44 @@ INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id` @@ -920,26 +974,44 @@ INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`
920 (193, 21, 'H', 1, 0), 974 (193, 21, 'H', 1, 0),
921 (194, 21, 'H', 1, 0), 975 (194, 21, 'H', 1, 0),
922 (195, 21, 'H', 1, 0), 976 (195, 21, 'H', 1, 0),
923 -(196, 21, 'H', 1, 0); 977 +(196, 21, 'H', 1, 0),
  978 +(197, 20, 'H', 1, 0),
  979 +(198, 20, 'H', 1, 0),
  980 +(199, 20, 'H', 1, 0),
  981 +(200, 197, 'H', 1, 0),
  982 +(201, 197, 'H', 1, 0),
  983 +(202, 197, 'H', 1, 0),
  984 +(203, 197, 'H', 1, 0),
  985 +(204, 197, 'H', 1, 0),
  986 +(205, 197, 'H', 1, 0),
  987 +(206, 197, 'H', 1, 0),
  988 +(207, 20, 'H', 1, 0),
  989 +(208, 207, 'H', 1, 0),
  990 +(209, 207, 'H', 1, 0),
  991 +(210, 207, 'H', 1, 0),
  992 +(211, 207, 'H', 1, 0),
  993 +(212, 207, 'H', 1, 0),
  994 +(213, 207, 'H', 1, 0),
  995 +(214, 207, 'H', 1, 0);
924 996
925 -- -------------------------------------------------------- 997 -- --------------------------------------------------------
926 998
927 -- 999 --
928 --- Структура таблицы `termin_lang` 1000 +-- Table structure for table `termin_lang`
929 -- 1001 --
930 1002
931 CREATE TABLE IF NOT EXISTS `termin_lang` ( 1003 CREATE TABLE IF NOT EXISTS `termin_lang` (
932 `termin_id` int(6) NOT NULL, 1004 `termin_id` int(6) NOT NULL,
933 `template_id` int(6) NOT NULL, 1005 `template_id` int(6) NOT NULL,
934 `termin_alias` varchar(50) NOT NULL, 1006 `termin_alias` varchar(50) NOT NULL,
935 - `termin_title` varchar(256) DEFAULT NULL, 1007 + `termin_title` varchar(250) DEFAULT NULL,
936 `lang_id` int(2) NOT NULL, 1008 `lang_id` int(2) NOT NULL,
937 PRIMARY KEY (`termin_id`,`lang_id`), 1009 PRIMARY KEY (`termin_id`,`lang_id`),
938 UNIQUE KEY `termin_id` (`termin_id`) 1010 UNIQUE KEY `termin_id` (`termin_id`)
939 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1011 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
940 1012
941 -- 1013 --
942 --- Дамп данных таблицы `termin_lang` 1014 +-- Dumping data for table `termin_lang`
943 -- 1015 --
944 1016
945 INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_title`, `lang_id`) VALUES 1017 INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_title`, `lang_id`) VALUES
@@ -1135,12 +1207,30 @@ INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_t @@ -1135,12 +1207,30 @@ INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_t
1135 (193, 3, 'openok', 'Опёнок', 2), 1207 (193, 3, 'openok', 'Опёнок', 2),
1136 (194, 3, 'ezhovik', 'Ежовик', 2), 1208 (194, 3, 'ezhovik', 'Ежовик', 2),
1137 (195, 3, 'trutovnik', 'Трутовик', 2), 1209 (195, 3, 'trutovnik', 'Трутовик', 2),
1138 -(196, 3, 'shitake', 'Шиитаке', 2); 1210 +(196, 3, 'shitake', 'Шиитаке', 2),
  1211 +(197, 3, 'ovoshnie', 'Овощные', 2),
  1212 +(198, 3, 'pryanye', 'Пряные', 2),
  1213 +(199, 3, 'zelenye', 'Зеленые', 2),
  1214 +(200, 3, 'arbuz', 'Арбуз', 2),
  1215 +(201, 3, 'baklazhan', 'Баклажан', 2),
  1216 +(202, 3, 'morkov', 'Морковь', 2),
  1217 +(203, 3, 'ogurets', 'Огурец', 2),
  1218 +(204, 3, 'parets', 'Перец', 2),
  1219 +(205, 3, 'redis', 'Редис', 2),
  1220 +(206, 3, 'repa', 'Репа', 2),
  1221 +(207, 3, 'lekarstvennye', 'Лекарственные', 2),
  1222 +(208, 3, 'altey', 'Алтей', 2),
  1223 +(209, 3, 'valeryana', 'Валериана', 2),
  1224 +(210, 3, 'zveroboy', 'Зверобой', 2),
  1225 +(211, 3, 'lyubystok', 'Любисток', 2),
  1226 +(212, 3, 'rostotopsha', 'Расторопша', 2),
  1227 +(213, 3, 'romashka', 'Ромашка', 2),
  1228 +(214, 3, 'lavanda', 'Лаванда', 2);
1139 1229
1140 -- -------------------------------------------------------- 1230 -- --------------------------------------------------------
1141 1231
1142 -- 1232 --
1143 --- Структура таблицы `termin_relation` 1233 +-- Table structure for table `termin_relation`
1144 -- 1234 --
1145 1235
1146 CREATE TABLE IF NOT EXISTS `termin_relation` ( 1236 CREATE TABLE IF NOT EXISTS `termin_relation` (
@@ -1150,7 +1240,7 @@ CREATE TABLE IF NOT EXISTS `termin_relation` ( @@ -1150,7 +1240,7 @@ CREATE TABLE IF NOT EXISTS `termin_relation` (
1150 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1240 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1151 1241
1152 -- 1242 --
1153 --- Дамп данных таблицы `termin_relation` 1243 +-- Dumping data for table `termin_relation`
1154 -- 1244 --
1155 1245
1156 INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES 1246 INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES
@@ -1311,6 +1401,7 @@ INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES @@ -1311,6 +1401,7 @@ INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES
1311 (146, 22), 1401 (146, 22),
1312 (147, 22), 1402 (147, 22),
1313 (148, 22), 1403 (148, 22),
  1404 +(148, 207),
1314 (149, 22), 1405 (149, 22),
1315 (150, 22), 1406 (150, 22),
1316 (151, 22), 1407 (151, 22),
@@ -1362,12 +1453,30 @@ INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES @@ -1362,12 +1453,30 @@ INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES
1362 (193, 21), 1453 (193, 21),
1363 (194, 21), 1454 (194, 21),
1364 (195, 21), 1455 (195, 21),
1365 -(196, 21); 1456 +(196, 21),
  1457 +(197, 20),
  1458 +(198, 20),
  1459 +(199, 20),
  1460 +(200, 197),
  1461 +(201, 197),
  1462 +(202, 197),
  1463 +(203, 197),
  1464 +(204, 197),
  1465 +(205, 197),
  1466 +(206, 197),
  1467 +(207, 20),
  1468 +(208, 207),
  1469 +(209, 207),
  1470 +(210, 207),
  1471 +(211, 207),
  1472 +(212, 207),
  1473 +(213, 207),
  1474 +(214, 207);
1366 1475
1367 -- -------------------------------------------------------- 1476 -- --------------------------------------------------------
1368 1477
1369 -- 1478 --
1370 --- Структура таблицы `termin_type` 1479 +-- Table structure for table `termin_type`
1371 -- 1480 --
1372 1481
1373 CREATE TABLE IF NOT EXISTS `termin_type` ( 1482 CREATE TABLE IF NOT EXISTS `termin_type` (
@@ -1377,7 +1486,7 @@ CREATE TABLE IF NOT EXISTS `termin_type` ( @@ -1377,7 +1486,7 @@ CREATE TABLE IF NOT EXISTS `termin_type` (
1377 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; 1486 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
1378 1487
1379 -- 1488 --
1380 --- Дамп данных таблицы `termin_type` 1489 +-- Dumping data for table `termin_type`
1381 -- 1490 --
1382 1491
1383 INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES 1492 INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES
@@ -1390,7 +1499,7 @@ INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES @@ -1390,7 +1499,7 @@ INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES
1390 -- -------------------------------------------------------- 1499 -- --------------------------------------------------------
1391 1500
1392 -- 1501 --
1393 --- Структура таблицы `termin_type_lang` 1502 +-- Table structure for table `termin_type_lang`
1394 -- 1503 --
1395 1504
1396 CREATE TABLE IF NOT EXISTS `termin_type_lang` ( 1505 CREATE TABLE IF NOT EXISTS `termin_type_lang` (
@@ -1401,7 +1510,7 @@ CREATE TABLE IF NOT EXISTS `termin_type_lang` ( @@ -1401,7 +1510,7 @@ CREATE TABLE IF NOT EXISTS `termin_type_lang` (
1401 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1510 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1402 1511
1403 -- 1512 --
1404 --- Дамп данных таблицы `termin_type_lang` 1513 +-- Dumping data for table `termin_type_lang`
1405 -- 1514 --
1406 1515
1407 INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`) VALUES 1516 INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`) VALUES
@@ -1419,7 +1528,7 @@ INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id` @@ -1419,7 +1528,7 @@ INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`
1419 -- -------------------------------------------------------- 1528 -- --------------------------------------------------------
1420 1529
1421 -- 1530 --
1422 --- Структура таблицы `translation` 1531 +-- Table structure for table `translation`
1423 -- 1532 --
1424 1533
1425 CREATE TABLE IF NOT EXISTS `translation` ( 1534 CREATE TABLE IF NOT EXISTS `translation` (
@@ -1432,7 +1541,7 @@ CREATE TABLE IF NOT EXISTS `translation` ( @@ -1432,7 +1541,7 @@ CREATE TABLE IF NOT EXISTS `translation` (
1432 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; 1541 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
1433 1542
1434 -- 1543 --
1435 --- Дамп данных таблицы `translation` 1544 +-- Dumping data for table `translation`
1436 -- 1545 --
1437 1546
1438 INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key`, `is_translation`) VALUES 1547 INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key`, `is_translation`) VALUES
@@ -1443,7 +1552,7 @@ INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key @@ -1443,7 +1552,7 @@ INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key
1443 -- -------------------------------------------------------- 1552 -- --------------------------------------------------------
1444 1553
1445 -- 1554 --
1446 --- Структура таблицы `translation_lang` 1555 +-- Table structure for table `translation_lang`
1447 -- 1556 --
1448 1557
1449 CREATE TABLE IF NOT EXISTS `translation_lang` ( 1558 CREATE TABLE IF NOT EXISTS `translation_lang` (
@@ -1454,7 +1563,7 @@ CREATE TABLE IF NOT EXISTS `translation_lang` ( @@ -1454,7 +1563,7 @@ CREATE TABLE IF NOT EXISTS `translation_lang` (
1454 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1563 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1455 1564
1456 -- 1565 --
1457 --- Дамп данных таблицы `translation_lang` 1566 +-- Dumping data for table `translation_lang`
1458 -- 1567 --
1459 1568
1460 INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`) VALUES 1569 INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`) VALUES
@@ -1467,7 +1576,7 @@ INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id` @@ -1467,7 +1576,7 @@ INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`
1467 -- -------------------------------------------------------- 1576 -- --------------------------------------------------------
1468 1577
1469 -- 1578 --
1470 --- Структура таблицы `user` 1579 +-- Table structure for table `user`
1471 -- 1580 --
1472 1581
1473 CREATE TABLE IF NOT EXISTS `user` ( 1582 CREATE TABLE IF NOT EXISTS `user` (
@@ -1487,48 +1596,27 @@ CREATE TABLE IF NOT EXISTS `user` ( @@ -1487,48 +1596,27 @@ CREATE TABLE IF NOT EXISTS `user` (
1487 UNIQUE KEY `email` (`email`), 1596 UNIQUE KEY `email` (`email`),
1488 UNIQUE KEY `username` (`username`), 1597 UNIQUE KEY `username` (`username`),
1489 UNIQUE KEY `password_reset_token` (`password_reset_token`) 1598 UNIQUE KEY `password_reset_token` (`password_reset_token`)
1490 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ; 1599 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;
1491 1600
1492 -- 1601 --
1493 --- Дамп данных таблицы `user` 1602 +-- Dumping data for table `user`
1494 -- 1603 --
1495 1604
1496 INSERT INTO `user` (`id`, `username`, `lastname`, `firstname`, `middlename`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES 1605 INSERT INTO `user` (`id`, `username`, `lastname`, `firstname`, `middlename`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
1497 -(1, 'zlodeyev', 'Андреев', 'Владимир', 'Сергійович', 'VgTs2skfY1Uf3YERn1OR3E2V_Hm0KZwF', '$2y$13$jOtOdIQUU2.ZyEkxN9TJjuhfS7Q3p2K/KqGWNyBab07OaQUsJ5nSi', NULL, 'volodymyr.andryeyev@gmail.com', 10, 1446046164, 1446538181),  
1498 -(2, 'admin', 'Dmitryi', '', NULL, '', '$2y$13$fJRWrKuS5ObSXkOccqOo2.okZKxmovfDdq77guMTTxQFooE2.nsA6', NULL, '', 10, 0, 0),  
1499 -(3, '', '', '', NULL, '', '$2y$13$fJRWrKuS5ObSXkOccqOo2.okZKxmovfDdq77guMTTxQFooE2.nsA6', NULL, 'dmitrii8891@gmail.com', 10, 0, 0);  
1500 -  
1501 ---  
1502 --- Ограничения внешнего ключа сохраненных таблиц  
1503 ---  
1504 -  
1505 ---  
1506 --- Ограничения внешнего ключа таблицы `auth_assignment`  
1507 ---  
1508 -ALTER TABLE `auth_assignment`  
1509 - ADD CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE;  
1510 -  
1511 ---  
1512 --- Ограничения внешнего ключа таблицы `auth_item`  
1513 ---  
1514 -ALTER TABLE `auth_item`  
1515 - ADD CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE; 1606 +(1, 'admin', 'Андреев', 'Владимир', 'Сергійович', 'VgTs2skfY1Uf3YERn1OR3E2V_Hm0KZwF', '$2y$13$jOtOdIQUU2.ZyEkxN9TJjuhfS7Q3p2K/KqGWNyBab07OaQUsJ5nSi', NULL, 'volodymyr.andryeyev@gmail.com', 10, 1446046164, 1446538181);
1516 1607
1517 -- 1608 --
1518 --- Ограничения внешнего ключа таблицы `auth_item_child` 1609 +-- Constraints for dumped tables
1519 -- 1610 --
1520 -ALTER TABLE `auth_item_child`  
1521 - ADD CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,  
1522 - ADD CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE;  
1523 1611
1524 -- 1612 --
1525 --- Ограничения внешнего ключа таблицы `option` 1613 +-- Constraints for table `option`
1526 -- 1614 --
1527 ALTER TABLE `option` 1615 ALTER TABLE `option`
1528 ADD CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`); 1616 ADD CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`);
1529 1617
1530 -- 1618 --
1531 --- Ограничения внешнего ключа таблицы `translation_lang` 1619 +-- Constraints for table `translation_lang`
1532 -- 1620 --
1533 ALTER TABLE `translation_lang` 1621 ALTER TABLE `translation_lang`
1534 ADD CONSTRAINT `translation_id` FOREIGN KEY (`translation_id`) REFERENCES `translation` (`translation_id`); 1622 ADD CONSTRAINT `translation_id` FOREIGN KEY (`translation_id`) REFERENCES `translation` (`translation_id`);
db-migration/artbox_db_langs.sql deleted
1 --- --------------------------------------------------------  
2 --- Хост: 127.0.0.1  
3 --- Версия сервера: 5.6.26 - MySQL Community Server (GPL)  
4 --- ОС Сервера: Win32  
5 --- HeidiSQL Версия: 9.3.0.4984  
6 --- --------------------------------------------------------  
7 -  
8 -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;  
9 -/*!40101 SET NAMES utf8mb4 */;  
10 -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;  
11 -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;  
12 -  
13 --- Дамп структуры для таблица artbox_db.language  
14 -CREATE TABLE IF NOT EXISTS `language` (  
15 - `language_id` int(2) NOT NULL AUTO_INCREMENT,  
16 - `lang_code` varchar(4) NOT NULL,  
17 - `is_default` bit(1) NOT NULL DEFAULT b'0',  
18 - `language_name` varchar(255) NOT NULL,  
19 - `active` bit(1) NOT NULL DEFAULT b'0',  
20 - PRIMARY KEY (`language_id`)  
21 -) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;  
22 -  
23 --- Дамп данных таблицы artbox_db.language: ~7 rows (приблизительно)  
24 -DELETE FROM `language`;  
25 -/*!40000 ALTER TABLE `language` DISABLE KEYS */;  
26 -INSERT INTO `language` (`language_id`, `lang_code`, `is_default`, `language_name`, `active`) VALUES  
27 - (1, 'ua', b'0', 'Українська', b'1'),  
28 - (2, 'ru', b'1', 'Русский', b'1'),  
29 - (3, 'us', b'0', 'English', b'0'),  
30 - (4, 'fr', b'0', 'Français', b'0'),  
31 - (5, 'lt', b'0', 'Lietùvių', b'0'),  
32 - (6, 'lv', b'0', 'Latviešu', b'0'),  
33 - (7, 'de', b'0', 'Deutsch', b'0');  
34 -/*!40000 ALTER TABLE `language` ENABLE KEYS */;  
35 -/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;  
36 -/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;  
37 -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;  
db-migration/artbox_option.sql deleted
1 --- --------------------------------------------------------  
2 --- Хост: 127.0.0.1  
3 --- Версия сервера: 5.6.26 - MySQL Community Server (GPL)  
4 --- ОС Сервера: Win32  
5 --- HeidiSQL Версия: 9.3.0.4984  
6 --- --------------------------------------------------------  
7 -  
8 -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;  
9 -/*!40101 SET NAMES utf8mb4 */;  
10 -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;  
11 -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;  
12 -  
13 --- Дамп структуры для таблица artbox_db.option  
14 -CREATE TABLE IF NOT EXISTS `option` (  
15 - `option_id` int(11) NOT NULL AUTO_INCREMENT,  
16 - `model` varchar(200) NOT NULL,  
17 - `model_id` int(11) NOT NULL,  
18 - `name` varchar(200) NOT NULL,  
19 - `template` varchar(200) NOT NULL,  
20 - `parent_id` int(11) DEFAULT NULL,  
21 - PRIMARY KEY (`option_id`),  
22 - KEY `FK_option_option` (`parent_id`),  
23 - CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`)  
24 -) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;  
25 -  
26 --- Дамп данных таблицы artbox_db.option: ~6 rows (приблизительно)  
27 -/*!40000 ALTER TABLE `option` DISABLE KEYS */;  
28 -INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `parent_id`) VALUES  
29 - (20, 'user', 10, 'phone', 'input', NULL),  
30 - (21, 'user', 10, 'adres', 'input', 20),  
31 - (22, 'user', 10, 'phone', 'input', NULL),  
32 - (23, 'user', 10, 'adres', 'input', 22),  
33 - (24, 'user', 10, 'phone', 'input', NULL),  
34 - (25, 'user', 10, 'adres', 'input', 24);  
35 -/*!40000 ALTER TABLE `option` ENABLE KEYS */;  
36 -  
37 -  
38 --- Дамп структуры для таблица artbox_db.option_lang  
39 -CREATE TABLE IF NOT EXISTS `option_lang` (  
40 - `primary` int(11) NOT NULL AUTO_INCREMENT,  
41 - `id` int(11) NOT NULL,  
42 - `lang_id` int(11) NOT NULL,  
43 - `value` text NOT NULL,  
44 - PRIMARY KEY (`primary`),  
45 - KEY `Индекс 1` (`id`),  
46 - KEY `Индекс 2` (`lang_id`)  
47 -) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;  
48 -  
49 --- Дамп данных таблицы artbox_db.option_lang: ~16 rows (приблизительно)  
50 -/*!40000 ALTER TABLE `option_lang` DISABLE KEYS */;  
51 -INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES  
52 - (20, 20, 0, 'phone'),  
53 - (21, 20, 1, 'phone111ukr'),  
54 - (22, 20, 2, 'phone111ru'),  
55 - (23, 21, 0, 'adres111'),  
56 - (24, 21, 1, 'adres111'),  
57 - (25, 21, 2, 'adres222'),  
58 - (26, 22, 0, 'phone222'),  
59 - (27, 22, 1, 'phone222uk'),  
60 - (28, 23, 0, 'adres111'),  
61 - (29, 23, 1, 'adres111'),  
62 - (30, 23, 2, 'adres111'),  
63 - (31, 24, 0, 'phone333'),  
64 - (32, 24, 2, 'phone333ru'),  
65 - (33, 25, 0, 'adres111'),  
66 - (34, 25, 1, 'adres111'),  
67 - (35, 25, 2, 'adres111');  
68 -/*!40000 ALTER TABLE `option_lang` ENABLE KEYS */;  
69 -/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;  
70 -/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;  
71 -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;