install.sql 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. -- TABLE: entries
  2. CREATE TABLE IF NOT EXISTS `bx_tasks_tasks` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `author` int(11) NOT NULL,
  5. `added` int(11) NOT NULL,
  6. `changed` int(11) NOT NULL,
  7. `published` int(11) NOT NULL,
  8. `thumb` int(11) NOT NULL,
  9. `title` varchar(255) NOT NULL,
  10. `stickers` int(11) NOT NULL default '0',
  11. `type` int(11) NOT NULL default '0',
  12. `priority` int(11) NOT NULL default '0',
  13. `estimate` int(11) NOT NULL default '0',
  14. `state` int(11) NOT NULL default '0',
  15. `cat` int(11) NOT NULL,
  16. `multicat` text NOT NULL,
  17. `text` mediumtext NOT NULL,
  18. `labels` text NOT NULL,
  19. `time` int(11) NOT NULL default '0',
  20. `views` int(11) NOT NULL default '0',
  21. `rate` float NOT NULL default '0',
  22. `votes` int(11) NOT NULL default '0',
  23. `rrate` float NOT NULL default '0',
  24. `rvotes` int(11) NOT NULL default '0',
  25. `score` int(11) NOT NULL default '0',
  26. `sc_up` int(11) NOT NULL default '0',
  27. `sc_down` int(11) NOT NULL default '0',
  28. `favorites` int(11) NOT NULL default '0',
  29. `comments` int(11) NOT NULL default '0',
  30. `reports` int(11) NOT NULL default '0',
  31. `featured` int(11) NOT NULL default '0',
  32. `due_date` int(11) NOT NULL,
  33. `tasks_list` int(11) NOT NULL,
  34. `gh_issue` int(11) NOT NULL default '0',
  35. `gh_issue_url` varchar(255) NOT NULL default '',
  36. `completed` tinyint(4) NOT NULL DEFAULT '0',
  37. `expired` tinyint(4) NOT NULL DEFAULT '0',
  38. `cf` int(11) NOT NULL default '1',
  39. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  40. `allow_comments` tinyint(4) NOT NULL DEFAULT '1',
  41. `status` enum('active','awaiting','failed','hidden') NOT NULL DEFAULT 'active',
  42. `status_admin` enum('active','hidden','pending') NOT NULL DEFAULT 'active',
  43. PRIMARY KEY (`id`),
  44. FULLTEXT KEY `title_text` (`title`,`text`)
  45. );
  46. -- TABLE: task-lists
  47. CREATE TABLE IF NOT EXISTS `bx_tasks_lists` (
  48. `id` int(11) NOT NULL AUTO_INCREMENT,
  49. `context_id` int(11) NOT NULL,
  50. `title` varchar(255) NOT NULL,
  51. PRIMARY KEY (`id`)
  52. );
  53. -- TABLE: contexts
  54. CREATE TABLE IF NOT EXISTS `bx_tasks_contexts` (
  55. `id` int(11) NOT NULL DEFAULT '0',
  56. `gh_app_id` int(11) NOT NULL DEFAULT '0',
  57. `gh_username` varchar(64) NOT NULL DEFAULT '',
  58. `gh_repository` varchar(255) NOT NULL DEFAULT '',
  59. PRIMARY KEY (`id`)
  60. );
  61. -- TABLE: assignment
  62. CREATE TABLE IF NOT EXISTS `bx_tasks_assignments` (
  63. `id` int(11) NOT NULL AUTO_INCREMENT,
  64. `initiator` int(11) NOT NULL,
  65. `content` int(11) NOT NULL,
  66. `added` int(10) unsigned NOT NULL,
  67. PRIMARY KEY (`id`),
  68. UNIQUE KEY `initiator` (`initiator`,`content`),
  69. KEY `content` (`content`)
  70. );
  71. -- TABLE: lists and values
  72. CREATE TABLE IF NOT EXISTS `bx_tasks_pre_lists` (
  73. `id` int(11) NOT NULL AUTO_INCREMENT,
  74. `name` varchar(32) NOT NULL DEFAULT '',
  75. `title` varchar(255) NOT NULL DEFAULT '',
  76. `use_color` tinyint(4) unsigned NOT NULL DEFAULT '0',
  77. `use_multiselect` tinyint(4) unsigned NOT NULL DEFAULT '0',
  78. PRIMARY KEY (`id`),
  79. UNIQUE KEY `name` (`name`)
  80. );
  81. INSERT INTO `bx_tasks_pre_lists` (`name`, `title`, `use_color`, `use_multiselect`) VALUES
  82. ('type', '_bx_tasks_pre_lists_types', 0, 0),
  83. ('sticker', '_bx_tasks_pre_lists_stickers', 1, 1);
  84. CREATE TABLE IF NOT EXISTS `bx_tasks_pre_values` (
  85. `id` int(11) NOT NULL AUTO_INCREMENT,
  86. `context_id` int(11) NOT NULL DEFAULT '0',
  87. `list` varchar(32) NOT NULL DEFAULT '',
  88. `value` varchar(255) NOT NULL DEFAULT '',
  89. `order` int(11) NOT NULL DEFAULT '0',
  90. `title` varchar(255) NOT NULL DEFAULT '',
  91. `color` varchar(128) NOT NULL DEFAULT '',
  92. PRIMARY KEY (`id`),
  93. UNIQUE KEY `list_value` (`list`, `value`(191))
  94. );
  95. -- TABLE: filters
  96. CREATE TABLE IF NOT EXISTS `bx_tasks_filters` (
  97. `id` int(11) NOT NULL AUTO_INCREMENT,
  98. `context_id` int(11) NOT NULL DEFAULT '0',
  99. `author` int(11) NOT NULL DEFAULT '0',
  100. `added` int(11) NOT NULL DEFAULT '0',
  101. `title` varchar(255) NOT NULL,
  102. `conditions` text NOT NULL,
  103. `permanent` TINYINT NOT NULL DEFAULT '0',
  104. `active` TINYINT NOT NULL DEFAULT '1',
  105. PRIMARY KEY (`id`)
  106. );
  107. INSERT INTO `bx_tasks_filters` (`author`, `added`, `title`, `conditions`, `permanent`, `active`) VALUES
  108. ('0', '0', '_bx_tasks_filter_title_by_author', '{"where":{"cnd":true,"t":"te","f":"author","v":"{logged_pid}","o":"="}}', 1, 1),
  109. ('0', '0', '_bx_tasks_filter_title_by_author_uncompleted', '{"where":{"grp":true,"o":"AND","cnds":[{"cnd":true,"t":"te","f":"author","v":"{logged_pid}","o":"="},{"cnd":true,"t":"te","f":"completed","v":"0","o":"="}]}}', 1, 1),
  110. ('0', '0', '_bx_tasks_filter_title_by_author_completed', '{"where":{"grp":true,"o":"AND","cnds":[{"cnd":true,"t":"te","f":"author","v":"{logged_pid}","o":"="},{"cnd":true,"t":"te","f":"completed","v":"1","o":"="}]}}', 1, 1),
  111. ('0', '0', '_bx_tasks_filter_title_by_assignee', '{"join":{"cnd":true,"j":"LEFT","tj":"bx_tasks_assignments","taj":"ta","fj":"content","tam":"te","fm":"id"},"where":{"cnd":true,"t":"ta","f":"initiator","v":"{logged_pid}","o":"="}}', 1, 1),
  112. ('0', '0', '_bx_tasks_filter_title_by_assignee_uncompleted', '{"join":{"cnd":true,"j":"LEFT","tj":"bx_tasks_assignments","taj":"ta","fj":"content","tam":"te","fm":"id"},"where":{"grp":true,"o":"AND","cnds":[{"cnd":true,"t":"ta","f":"initiator","v":"{logged_pid}","o":"="},{"cnd":true,"t":"te","f":"completed","v":"0","o":"="}]}}', 1, 1),
  113. ('0', '0', '_bx_tasks_filter_title_by_assignee_completed', '{"join":{"cnd":true,"j":"LEFT","tj":"bx_tasks_assignments","taj":"ta","fj":"content","tam":"te","fm":"id"},"where":{"grp":true,"o":"AND","cnds":[{"cnd":true,"t":"ta","f":"initiator","v":"{logged_pid}","o":"="},{"cnd":true,"t":"te","f":"completed","v":"1","o":"="}]}}', 1, 1);
  114. -- TABLE: storages & transcoders
  115. CREATE TABLE IF NOT EXISTS `bx_tasks_covers` (
  116. `id` int(11) NOT NULL AUTO_INCREMENT,
  117. `profile_id` int(10) unsigned NOT NULL,
  118. `remote_id` varchar(128) NOT NULL,
  119. `path` varchar(255) NOT NULL,
  120. `file_name` varchar(255) NOT NULL,
  121. `mime_type` varchar(128) NOT NULL,
  122. `ext` varchar(32) NOT NULL,
  123. `size` bigint(20) NOT NULL,
  124. `added` int(11) NOT NULL,
  125. `modified` int(11) NOT NULL,
  126. `private` int(11) NOT NULL,
  127. PRIMARY KEY (`id`),
  128. UNIQUE KEY `remote_id` (`remote_id`)
  129. );
  130. CREATE TABLE IF NOT EXISTS `bx_tasks_files` (
  131. `id` int(11) NOT NULL AUTO_INCREMENT,
  132. `profile_id` int(10) unsigned NOT NULL,
  133. `remote_id` varchar(128) NOT NULL,
  134. `path` varchar(255) NOT NULL,
  135. `file_name` varchar(255) NOT NULL,
  136. `mime_type` varchar(128) NOT NULL,
  137. `ext` varchar(32) NOT NULL,
  138. `size` bigint(20) NOT NULL,
  139. `added` int(11) NOT NULL,
  140. `modified` int(11) NOT NULL,
  141. `private` int(11) NOT NULL,
  142. PRIMARY KEY (`id`),
  143. UNIQUE KEY `remote_id` (`remote_id`)
  144. );
  145. CREATE TABLE IF NOT EXISTS `bx_tasks_photos` (
  146. `id` int(11) NOT NULL AUTO_INCREMENT,
  147. `profile_id` int(10) unsigned NOT NULL,
  148. `remote_id` varchar(128) NOT NULL,
  149. `path` varchar(255) NOT NULL,
  150. `file_name` varchar(255) NOT NULL,
  151. `mime_type` varchar(128) NOT NULL,
  152. `ext` varchar(32) NOT NULL,
  153. `size` bigint(20) NOT NULL,
  154. `added` int(11) NOT NULL,
  155. `modified` int(11) NOT NULL,
  156. `private` int(11) NOT NULL,
  157. PRIMARY KEY (`id`),
  158. UNIQUE KEY `remote_id` (`remote_id`)
  159. );
  160. CREATE TABLE IF NOT EXISTS `bx_tasks_photos_resized` (
  161. `id` int(11) NOT NULL AUTO_INCREMENT,
  162. `profile_id` int(10) unsigned NOT NULL,
  163. `remote_id` varchar(128) NOT NULL,
  164. `path` varchar(255) NOT NULL,
  165. `file_name` varchar(255) NOT NULL,
  166. `mime_type` varchar(128) NOT NULL,
  167. `ext` varchar(32) NOT NULL,
  168. `size` bigint(20) NOT NULL,
  169. `added` int(11) NOT NULL,
  170. `modified` int(11) NOT NULL,
  171. `private` int(11) NOT NULL,
  172. PRIMARY KEY (`id`),
  173. UNIQUE KEY `remote_id` (`remote_id`)
  174. );
  175. CREATE TABLE IF NOT EXISTS `bx_tasks_videos` (
  176. `id` int(11) NOT NULL AUTO_INCREMENT,
  177. `profile_id` int(10) unsigned NOT NULL,
  178. `remote_id` varchar(128) NOT NULL,
  179. `path` varchar(255) NOT NULL,
  180. `file_name` varchar(255) NOT NULL,
  181. `mime_type` varchar(128) NOT NULL,
  182. `ext` varchar(32) NOT NULL,
  183. `size` bigint(20) NOT NULL,
  184. `dimensions` varchar(12) NOT NULL,
  185. `added` int(11) NOT NULL,
  186. `modified` int(11) NOT NULL,
  187. `private` int(11) NOT NULL,
  188. PRIMARY KEY (`id`),
  189. UNIQUE KEY `remote_id` (`remote_id`)
  190. );
  191. CREATE TABLE IF NOT EXISTS `bx_tasks_videos_resized` (
  192. `id` int(11) NOT NULL AUTO_INCREMENT,
  193. `profile_id` int(10) unsigned NOT NULL,
  194. `remote_id` varchar(128) NOT NULL,
  195. `path` varchar(255) NOT NULL,
  196. `file_name` varchar(255) NOT NULL,
  197. `mime_type` varchar(128) NOT NULL,
  198. `ext` varchar(32) NOT NULL,
  199. `size` bigint(20) NOT NULL,
  200. `added` int(11) NOT NULL,
  201. `modified` int(11) NOT NULL,
  202. `private` int(11) NOT NULL,
  203. PRIMARY KEY (`id`),
  204. UNIQUE KEY `remote_id` (`remote_id`)
  205. );
  206. -- TABLE: comments
  207. CREATE TABLE IF NOT EXISTS `bx_tasks_cmts` (
  208. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  209. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  210. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  211. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  212. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  213. `cmt_level` int(11) NOT NULL DEFAULT '0',
  214. `cmt_text` text NOT NULL,
  215. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  216. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  217. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  218. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  219. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  220. `cmt_pinned` int(11) NOT NULL default '0',
  221. `cmt_cf` int(11) NOT NULL default '1',
  222. PRIMARY KEY (`cmt_id`),
  223. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  224. FULLTEXT KEY `search_fields` (`cmt_text`)
  225. );
  226. CREATE TABLE IF NOT EXISTS `bx_tasks_cmts_notes` (
  227. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  228. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  229. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  230. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  231. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  232. `cmt_level` int(11) NOT NULL DEFAULT '0',
  233. `cmt_text` text NOT NULL,
  234. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  235. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  236. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  237. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  238. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  239. `cmt_pinned` int(11) NOT NULL default '0',
  240. PRIMARY KEY (`cmt_id`),
  241. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  242. FULLTEXT KEY `search_fields` (`cmt_text`)
  243. );
  244. -- TABLE: votes
  245. CREATE TABLE IF NOT EXISTS `bx_tasks_votes` (
  246. `id` int(11) NOT NULL AUTO_INCREMENT,
  247. `object_id` int(11) NOT NULL default '0',
  248. `count` int(11) NOT NULL default '0',
  249. `sum` int(11) NOT NULL default '0',
  250. PRIMARY KEY (`id`),
  251. UNIQUE KEY `object_id` (`object_id`)
  252. );
  253. CREATE TABLE IF NOT EXISTS `bx_tasks_votes_track` (
  254. `id` int(11) NOT NULL AUTO_INCREMENT,
  255. `object_id` int(11) NOT NULL default '0',
  256. `author_id` int(11) NOT NULL default '0',
  257. `author_nip` int(11) unsigned NOT NULL default '0',
  258. `value` tinyint(4) NOT NULL default '0',
  259. `date` int(11) NOT NULL default '0',
  260. PRIMARY KEY (`id`),
  261. KEY `vote` (`object_id`, `author_nip`)
  262. );
  263. CREATE TABLE IF NOT EXISTS `bx_tasks_reactions` (
  264. `id` int(11) NOT NULL AUTO_INCREMENT,
  265. `object_id` int(11) NOT NULL default '0',
  266. `reaction` varchar(32) NOT NULL default '',
  267. `count` int(11) NOT NULL default '0',
  268. `sum` int(11) NOT NULL default '0',
  269. PRIMARY KEY (`id`),
  270. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  271. );
  272. CREATE TABLE IF NOT EXISTS `bx_tasks_reactions_track` (
  273. `id` int(11) NOT NULL AUTO_INCREMENT,
  274. `object_id` int(11) NOT NULL default '0',
  275. `author_id` int(11) NOT NULL default '0',
  276. `author_nip` int(11) unsigned NOT NULL default '0',
  277. `reaction` varchar(32) NOT NULL default '',
  278. `value` tinyint(4) NOT NULL default '0',
  279. `date` int(11) NOT NULL default '0',
  280. PRIMARY KEY (`id`),
  281. KEY `vote` (`object_id`, `author_nip`)
  282. );
  283. -- TABLE: views
  284. CREATE TABLE `bx_tasks_views_track` (
  285. `id` int(11) NOT NULL AUTO_INCREMENT,
  286. `object_id` int(11) NOT NULL default '0',
  287. `viewer_id` int(11) NOT NULL default '0',
  288. `viewer_nip` int(11) unsigned NOT NULL default '0',
  289. `date` int(11) NOT NULL default '0',
  290. PRIMARY KEY (`id`),
  291. KEY `id` (`object_id`,`viewer_id`,`viewer_nip`)
  292. );
  293. -- TABLE: metas
  294. CREATE TABLE `bx_tasks_meta_keywords` (
  295. `id` int(11) NOT NULL AUTO_INCREMENT,
  296. `object_id` int(10) unsigned NOT NULL,
  297. `keyword` varchar(255) NOT NULL,
  298. PRIMARY KEY (`id`),
  299. KEY `object_id` (`object_id`),
  300. KEY `keyword` (`keyword`)
  301. );
  302. CREATE TABLE `bx_tasks_meta_mentions` (
  303. `id` int(11) NOT NULL AUTO_INCREMENT,
  304. `object_id` int(10) unsigned NOT NULL,
  305. `profile_id` int(10) unsigned NOT NULL,
  306. PRIMARY KEY (`id`),
  307. KEY `object_id` (`object_id`),
  308. KEY `profile_id` (`profile_id`)
  309. );
  310. -- TABLE: reports
  311. CREATE TABLE IF NOT EXISTS `bx_tasks_reports` (
  312. `id` int(11) NOT NULL AUTO_INCREMENT,
  313. `object_id` int(11) NOT NULL default '0',
  314. `count` int(11) NOT NULL default '0',
  315. PRIMARY KEY (`id`),
  316. UNIQUE KEY `object_id` (`object_id`)
  317. );
  318. CREATE TABLE IF NOT EXISTS `bx_tasks_reports_track` (
  319. `id` int(11) NOT NULL AUTO_INCREMENT,
  320. `object_id` int(11) NOT NULL default '0',
  321. `author_id` int(11) NOT NULL default '0',
  322. `author_nip` int(11) unsigned NOT NULL default '0',
  323. `type` varchar(32) NOT NULL default '',
  324. `text` text NOT NULL default '',
  325. `date` int(11) NOT NULL default '0',
  326. `checked_by` int(11) NOT NULL default '0',
  327. `status` tinyint(11) NOT NULL default '0',
  328. PRIMARY KEY (`id`),
  329. KEY `report` (`object_id`, `author_nip`)
  330. );
  331. -- TABLE: time
  332. CREATE TABLE IF NOT EXISTS `bx_tasks_time` (
  333. `id` int(11) NOT NULL AUTO_INCREMENT,
  334. `object_id` int(11) NOT NULL default '0',
  335. `count` int(11) NOT NULL default '0',
  336. `sum` int(11) NOT NULL default '0',
  337. PRIMARY KEY (`id`),
  338. UNIQUE KEY `object_id` (`object_id`)
  339. );
  340. CREATE TABLE IF NOT EXISTS `bx_tasks_time_track` (
  341. `id` int(11) NOT NULL AUTO_INCREMENT,
  342. `object_id` int(11) NOT NULL default '0',
  343. `author_id` int(11) NOT NULL default '0',
  344. `author_nip` int(11) unsigned NOT NULL default '0',
  345. `value` int(11) NOT NULL default '0',
  346. `value_date` int(11) NOT NULL default '0',
  347. `text` text NOT NULL default '',
  348. `date` int(11) NOT NULL default '0',
  349. PRIMARY KEY (`id`)
  350. );
  351. -- TABLE: timers
  352. CREATE TABLE IF NOT EXISTS `bx_tasks_timers` (
  353. `id` int(11) NOT NULL AUTO_INCREMENT,
  354. `content_id` int(11) NOT NULL default '0',
  355. `profile_id` int(11) NOT NULL default '0',
  356. `started` int(11) NOT NULL default '0',
  357. `duration` int(11) NOT NULL default '0',
  358. PRIMARY KEY (`id`),
  359. UNIQUE KEY `timer` (`content_id`, `profile_id`)
  360. );
  361. -- TABLE: favorites
  362. CREATE TABLE `bx_tasks_favorites_track` (
  363. `id` int(11) NOT NULL AUTO_INCREMENT,
  364. `object_id` int(11) NOT NULL default '0',
  365. `author_id` int(11) NOT NULL default '0',
  366. `date` int(11) NOT NULL default '0',
  367. PRIMARY KEY (`id`),
  368. KEY `id` (`object_id`,`author_id`)
  369. );
  370. -- TABLE: scores
  371. CREATE TABLE IF NOT EXISTS `bx_tasks_scores` (
  372. `id` int(11) NOT NULL AUTO_INCREMENT,
  373. `object_id` int(11) NOT NULL default '0',
  374. `count_up` int(11) NOT NULL default '0',
  375. `count_down` int(11) NOT NULL default '0',
  376. PRIMARY KEY (`id`),
  377. UNIQUE KEY `object_id` (`object_id`)
  378. );
  379. CREATE TABLE IF NOT EXISTS `bx_tasks_scores_track` (
  380. `id` int(11) NOT NULL AUTO_INCREMENT,
  381. `object_id` int(11) NOT NULL default '0',
  382. `author_id` int(11) NOT NULL default '0',
  383. `author_nip` int(11) unsigned NOT NULL default '0',
  384. `type` varchar(8) NOT NULL default '',
  385. `date` int(11) NOT NULL default '0',
  386. PRIMARY KEY (`id`),
  387. KEY `vote` (`object_id`, `author_nip`)
  388. );
  389. -- STORAGES & TRANSCODERS
  390. SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
  391. INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES
  392. ('bx_tasks_covers', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_covers', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  393. ('bx_tasks_photos', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_photos', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  394. ('bx_tasks_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_photos_resized', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  395. ('bx_tasks_videos', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_videos', 'allow-deny', '{video}', '', 0, 0, 0, 0, 0, 0),
  396. ('bx_tasks_videos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_videos_resized', 'allow-deny', '{imagevideo}', '', 0, 0, 0, 0, 0, 0),
  397. ('bx_tasks_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_files', 'deny-allow', '', '{dangerous}', 0, 0, 0, 0, 0, 0);
  398. INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`, `override_class_name`, `override_class_file`) VALUES
  399. ('bx_tasks_preview', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  400. ('bx_tasks_gallery', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  401. ('bx_tasks_cover', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  402. ('bx_tasks_preview_photos', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_photos";}', 'no', '1', '2592000', '0', '', ''),
  403. ('bx_tasks_gallery_photos', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_photos";}', 'no', '1', '2592000', '0', '', ''),
  404. ('bx_tasks_videos_poster', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  405. ('bx_tasks_videos_poster_preview', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  406. ('bx_tasks_videos_mp4', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  407. ('bx_tasks_videos_mp4_hd', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  408. ('bx_tasks_preview_files', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_tasks_files";}', 'no', '1', '2592000', '0', '', ''),
  409. ('bx_tasks_gallery_files', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_tasks_files";}', 'no', '1', '2592000', '0', '', '');
  410. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  411. ('bx_tasks_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  412. ('bx_tasks_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
  413. ('bx_tasks_cover', 'Resize', 'a:1:{s:1:"w";s:4:"1200";}', '0'),
  414. ('bx_tasks_preview_photos', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  415. ('bx_tasks_gallery_photos', 'Resize', 'a:1:{s:1:"w";s:4:"1200";}', '0'),
  416. ('bx_tasks_videos_poster_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:13:"square_resize";s:1:"1";}', 10),
  417. ('bx_tasks_videos_poster_preview', 'Poster', 'a:2:{s:1:"h";s:3:"480";s:10:"force_type";s:3:"jpg";}', 0),
  418. ('bx_tasks_videos_poster', 'Poster', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"jpg";}', 0),
  419. ('bx_tasks_videos_mp4', 'Mp4', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"mp4";}', 0),
  420. ('bx_tasks_videos_mp4_hd', 'Mp4', 'a:3:{s:1:"h";s:3:"720";s:13:"video_bitrate";s:4:"1536";s:10:"force_type";s:3:"mp4";}', 0),
  421. ('bx_tasks_preview_files', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  422. ('bx_tasks_gallery_files', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0');
  423. -- FORMS: entry (task)
  424. INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  425. ('bx_tasks', 'bx_tasks', '_bx_tasks_form_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_tasks_tasks', 'id', '', '', 'a:2:{i:0;s:9:"do_submit";i:1;s:10:"do_publish";}', '', 0, 1, 'BxTasksFormEntry', 'modules/boonex/tasks/classes/BxTasksFormEntry.php');
  426. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  427. ('bx_tasks', 'bx_tasks_entry_add', 'bx_tasks', 0, '_bx_tasks_form_entry_display_add'),
  428. ('bx_tasks', 'bx_tasks_entry_delete', 'bx_tasks', 0, '_bx_tasks_form_entry_display_delete'),
  429. ('bx_tasks', 'bx_tasks_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit'),
  430. ('bx_tasks', 'bx_tasks_entry_edit_body', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_body'),
  431. ('bx_tasks', 'bx_tasks_entry_edit_tasks_list', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_tasks_list'),
  432. ('bx_tasks', 'bx_tasks_entry_edit_type', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_type'),
  433. ('bx_tasks', 'bx_tasks_entry_edit_priority', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_priority'),
  434. ('bx_tasks', 'bx_tasks_entry_edit_estimate', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_estimate'),
  435. ('bx_tasks', 'bx_tasks_entry_edit_due_date', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_due_date'),
  436. ('bx_tasks', 'bx_tasks_entry_edit_state', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_state'),
  437. ('bx_tasks', 'bx_tasks_entry_view', 'bx_tasks', 1, '_bx_tasks_form_entry_display_view');
  438. INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  439. ('bx_tasks', 'bx_tasks', 'cf', '1', '#!sys_content_filter', 0, 'select', '_sys_form_entry_input_sys_cf', '_sys_form_entry_input_cf', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  440. ('bx_tasks', 'bx_tasks', 'tasks_list', '', '', 0, 'select', '_bx_tasks_form_entry_input_sys_tasks_list', '_bx_tasks_form_entry_input_tasks_list', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  441. ('bx_tasks', 'bx_tasks', 'allow_view_to', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_allow_view_to', '_bx_tasks_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  442. ('bx_tasks', 'bx_tasks', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_tasks_form_entry_input_sys_delete_confirm', '_bx_tasks_form_entry_input_delete_confirm', '_bx_tasks_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_entry_input_delete_confirm_error', '', '', 1, 0),
  443. ('bx_tasks', 'bx_tasks', 'do_publish', '_bx_tasks_form_entry_input_do_publish', '', 0, 'submit', '_bx_tasks_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  444. ('bx_tasks', 'bx_tasks', 'do_submit', '_bx_tasks_form_entry_input_do_submit', '', 0, 'submit', '_bx_tasks_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  445. ('bx_tasks', 'bx_tasks', 'do_cancel', '_bx_tasks_form_entry_input_do_cancel', '', 0, 'button', '_bx_tasks_form_entry_input_sys_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 1, 0),
  446. ('bx_tasks', 'bx_tasks', 'do_cancel_edit', '_bx_tasks_form_entry_input_do_cancel_edit', '', 0, 'button', '_bx_tasks_form_entry_input_sys_do_cancel_edit', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:41:"window.open(''{edit_cancel_url}'', ''_self'')";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0),
  447. ('bx_tasks', 'bx_tasks', 'controls', '', 'do_publish,do_cancel', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  448. ('bx_tasks', 'bx_tasks', 'controls_edit', '', 'do_submit,do_cancel_edit', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls_edit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  449. ('bx_tasks', 'bx_tasks', 'controls_edit_popup', '', 'do_submit,do_cancel', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls_edit_popup', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  450. ('bx_tasks', 'bx_tasks', 'covers', 'a:1:{i:0;s:14:"bx_tasks_html5";}', 'a:1:{s:14:"bx_tasks_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_covers', '_bx_tasks_form_entry_input_covers', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  451. ('bx_tasks', 'bx_tasks', 'pictures', 'a:1:{i:0;s:21:"bx_tasks_photos_html5";}', 'a:1:{s:21:"bx_tasks_photos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_pictures', '_bx_tasks_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  452. ('bx_tasks', 'bx_tasks', 'videos', 'a:2:{i:0;s:21:"bx_tasks_videos_html5";i:1;s:28:"bx_tasks_videos_record_video";}', 'a:2:{s:21:"bx_tasks_videos_html5";s:25:"_sys_uploader_html5_title";s:28:"bx_tasks_videos_record_video";s:32:"_sys_uploader_record_video_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_videos', '_bx_tasks_form_entry_input_videos', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  453. ('bx_tasks', 'bx_tasks', 'files', 'a:1:{i:0;s:20:"bx_tasks_files_html5";}', 'a:1:{s:20:"bx_tasks_files_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_files', '_bx_tasks_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  454. ('bx_tasks', 'bx_tasks', 'text', '', '', 0, 'textarea', '_bx_tasks_form_entry_input_sys_text', '_bx_tasks_form_entry_input_text', '', 0, 0, 2, '', '', '', '', '', '', 'XssHtml', '', 1, 0),
  455. ('bx_tasks', 'bx_tasks', 'title', '', '', 0, 'text', '_bx_tasks_form_entry_input_sys_title', '_bx_tasks_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Length', 'a:2:{s:3:"min";i:3;s:3:"max";i:160;}', '_bx_tasks_form_entry_input_title_err', 'Xss', '', 1, 0),
  456. ('bx_tasks', 'bx_tasks', 'stickers', '', '#!bx_tasks_stickers', 0, 'checkbox_set', '_bx_tasks_form_entry_input_sys_stickers', '_bx_tasks_form_entry_input_stickers', '', 0, 0, 0, '', '', '', '', '', '', 'Set', '', 1, 0),
  457. ('bx_tasks', 'bx_tasks', 'type', '', '#!bx_tasks_types', 0, 'select', '_bx_tasks_form_entry_input_sys_type', '_bx_tasks_form_entry_input_type', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  458. ('bx_tasks', 'bx_tasks', 'priority', '', '#!bx_tasks_priorities', 0, 'select', '_bx_tasks_form_entry_input_sys_priority', '_bx_tasks_form_entry_input_priority', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  459. ('bx_tasks', 'bx_tasks', 'state', '', '#!bx_tasks_states', 0, 'select', '_bx_tasks_form_entry_input_sys_state', '_bx_tasks_form_entry_input_state', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  460. ('bx_tasks', 'bx_tasks', 'cat', '', '#!bx_tasks_cats', 0, 'select', '_bx_tasks_form_entry_input_sys_cat', '_bx_tasks_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_tasks_form_entry_input_cat_err', 'Xss', '', 1, 0),
  461. ('bx_tasks', 'bx_tasks', 'multicat', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_multicat', '_bx_tasks_form_entry_input_multicat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_tasks_form_entry_input_multicat_err', 'Xss', '', 1, 0),
  462. ('bx_tasks', 'bx_tasks', 'added', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_added', '_bx_tasks_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  463. ('bx_tasks', 'bx_tasks', 'changed', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_changed', '_bx_tasks_form_entry_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  464. ('bx_tasks', 'bx_tasks', 'published', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_published', '_bx_tasks_form_entry_input_date_published', '_bx_tasks_form_entry_input_date_published_info', 0, 0, 0, '', '', '', '', '', '', 'DateTimeTs', '', 1, 0),
  465. ('bx_tasks', 'bx_tasks', 'initial_members', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_initial_members', '_bx_tasks_form_entry_input_initial_members', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1),
  466. ('bx_tasks', 'bx_tasks', 'estimate', '', '#!bx_tasks_estimates', 0, 'select', '_bx_tasks_form_entry_input_sys_estimate', '_bx_tasks_form_entry_input_estimate', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  467. ('bx_tasks', 'bx_tasks', 'due_date', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_due_date', '_bx_tasks_form_entry_input_date_due_date', '', 0, 0, 0, '', '', '', '', '', '', 'DateTimeUtc', '', 1, 0),
  468. ('bx_tasks', 'bx_tasks', 'attachments', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  469. ('bx_tasks', 'bx_tasks', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  470. ('bx_tasks', 'bx_tasks', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  471. ('bx_tasks', 'bx_tasks', 'allow_comments', '1', '', 1, 'switcher', '_bx_tasks_form_entry_input_sys_allow_comments', '_bx_tasks_form_entry_input_allow_comments', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  472. ('bx_tasks', 'bx_tasks', 'gh_issue_url', '', '', 0, 'value', '_bx_tasks_form_entry_input_sys_gh_issue_url', '_bx_tasks_form_entry_input_gh_issue_url', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0);
  473. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  474. ('bx_tasks_entry_add', 'title', 2147483647, 1, 1),
  475. ('bx_tasks_entry_add', 'text', 2147483647, 1, 2),
  476. ('bx_tasks_entry_add', 'initial_members', 192, 1, 3),
  477. ('bx_tasks_entry_add', 'due_date', 192, 1, 4),
  478. ('bx_tasks_entry_add', 'stickers', 2147483647, 1, 5),
  479. ('bx_tasks_entry_add', 'type', 2147483647, 1, 6),
  480. ('bx_tasks_entry_add', 'priority', 2147483647, 1, 7),
  481. ('bx_tasks_entry_add', 'estimate', 2147483647, 1, 8),
  482. ('bx_tasks_entry_add', 'controls', 2147483647, 1, 9),
  483. ('bx_tasks_entry_add', 'do_publish', 2147483647, 1, 10),
  484. ('bx_tasks_entry_add', 'do_cancel', 2147483647, 1, 11),
  485. ('bx_tasks_entry_delete', 'delete_confirm', 2147483647, 1, 1),
  486. ('bx_tasks_entry_delete', 'do_submit', 2147483647, 1, 2),
  487. ('bx_tasks_entry_edit', 'title', 2147483647, 1, 1),
  488. ('bx_tasks_entry_edit', 'text', 2147483647, 1, 2),
  489. ('bx_tasks_entry_edit', 'attachments', 2147483647, 1, 3),
  490. ('bx_tasks_entry_edit', 'pictures', 2147483647, 1, 4),
  491. ('bx_tasks_entry_edit', 'videos', 2147483647, 1, 5),
  492. ('bx_tasks_entry_edit', 'files', 2147483647, 1, 6),
  493. ('bx_tasks_entry_edit', 'allow_view_to', 2147483647, 1, 7),
  494. ('bx_tasks_entry_edit', 'cf', 2147483647, 1, 8),
  495. ('bx_tasks_entry_edit', 'initial_members', 192, 1, 9),
  496. ('bx_tasks_entry_edit', 'due_date', 192, 1, 10),
  497. ('bx_tasks_entry_edit', 'stickers', 2147483647, 1, 11),
  498. ('bx_tasks_entry_edit', 'type', 2147483647, 1, 12),
  499. ('bx_tasks_entry_edit', 'priority', 2147483647, 1, 13),
  500. ('bx_tasks_entry_edit', 'estimate', 2147483647, 1, 14),
  501. ('bx_tasks_entry_edit', 'controls_edit', 2147483647, 1, 15),
  502. ('bx_tasks_entry_edit', 'do_submit', 2147483647, 1, 16),
  503. ('bx_tasks_entry_edit', 'do_cancel_edit', 2147483647, 1, 17),
  504. ('bx_tasks_entry_edit_body', 'title', 2147483647, 1, 1),
  505. ('bx_tasks_entry_edit_body', 'text', 2147483647, 1, 2),
  506. ('bx_tasks_entry_edit_body', 'do_submit', 2147483647, 1, 3),
  507. ('bx_tasks_entry_edit_tasks_list', 'tasks_list', 2147483647, 1, 1),
  508. ('bx_tasks_entry_edit_tasks_list', 'controls_edit_popup', 2147483647, 1, 2),
  509. ('bx_tasks_entry_edit_tasks_list', 'do_submit', 2147483647, 1, 3),
  510. ('bx_tasks_entry_edit_tasks_list', 'do_cancel', 2147483647, 1, 4),
  511. ('bx_tasks_entry_edit_state', 'state', 2147483647, 1, 1),
  512. ('bx_tasks_entry_edit_state', 'controls_edit_popup', 2147483647, 1, 2),
  513. ('bx_tasks_entry_edit_state', 'do_submit', 2147483647, 1, 3),
  514. ('bx_tasks_entry_edit_state', 'do_cancel', 2147483647, 1, 4),
  515. ('bx_tasks_entry_edit_type', 'type', 2147483647, 1, 1),
  516. ('bx_tasks_entry_edit_type', 'controls_edit_popup', 2147483647, 1, 2),
  517. ('bx_tasks_entry_edit_type', 'do_submit', 2147483647, 1, 3),
  518. ('bx_tasks_entry_edit_type', 'do_cancel', 2147483647, 1, 4),
  519. ('bx_tasks_entry_edit_priority', 'priority', 2147483647, 1, 1),
  520. ('bx_tasks_entry_edit_priority', 'controls_edit_popup', 2147483647, 1, 2),
  521. ('bx_tasks_entry_edit_priority', 'do_submit', 2147483647, 1, 3),
  522. ('bx_tasks_entry_edit_priority', 'do_cancel', 2147483647, 1, 4),
  523. ('bx_tasks_entry_edit_estimate', 'estimate', 2147483647, 1, 1),
  524. ('bx_tasks_entry_edit_estimate', 'controls_edit_popup', 2147483647, 1, 2),
  525. ('bx_tasks_entry_edit_estimate', 'do_submit', 2147483647, 1, 3),
  526. ('bx_tasks_entry_edit_estimate', 'do_cancel', 2147483647, 1, 4),
  527. ('bx_tasks_entry_edit_due_date', 'due_date', 192, 1, 1),
  528. ('bx_tasks_entry_edit_due_date', 'controls_edit_popup', 2147483647, 1, 2),
  529. ('bx_tasks_entry_edit_due_date', 'do_submit', 2147483647, 1, 3),
  530. ('bx_tasks_entry_edit_due_date', 'do_cancel', 2147483647, 1, 4),
  531. ('bx_tasks_entry_view', 'tasks_list', 2147483647, 1, 0),
  532. ('bx_tasks_entry_view', 'stickers', 2147483647, 1, 1),
  533. ('bx_tasks_entry_view', 'type', 2147483647, 1, 2),
  534. ('bx_tasks_entry_view', 'priority', 2147483647, 1, 3),
  535. ('bx_tasks_entry_view', 'estimate', 2147483647, 1, 4),
  536. ('bx_tasks_entry_view', 'cat', 2147483647, 1, 5),
  537. ('bx_tasks_entry_view', 'added', 2147483647, 1, 6),
  538. ('bx_tasks_entry_view', 'changed', 2147483647, 1, 7),
  539. ('bx_tasks_entry_view', 'due_date', 192, 1, 8),
  540. ('bx_tasks_entry_view', 'state', 2147483647, 1, 9),
  541. ('bx_tasks_entry_view', 'gh_issue_url', 2147483647, 1, 10);
  542. -- FORMS: entry (tasklist)
  543. INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  544. ('bx_tasks_list', 'bx_tasks', '_bx_tasks_form_list_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_tasks_lists', 'id', '', '', 'do_submit', '', 0, 1, 'BxTasksFormListEntry', 'modules/boonex/tasks/classes/BxTasksFormListEntry.php');
  545. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  546. ('bx_tasks_list', 'bx_tasks_list_entry_add', 'bx_tasks', 0, '_bx_tasks_form_list_entry_display_add'),
  547. ('bx_tasks_list', 'bx_tasks_list_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_list_entry_display_edit');
  548. INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  549. ('bx_tasks_list', 'bx_tasks', 'do_submit', '_bx_tasks_form_list_entry_input_do_submit', '', 0, 'submit', '_bx_tasks_form_list_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  550. ('bx_tasks_list', 'bx_tasks', 'title', '', '', 0, 'text', '_bx_tasks_form_list_entry_input_sys_title', '_bx_tasks_form_list_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_list_entry_input_title_err', 'Xss', '', 1, 0),
  551. ('bx_tasks_list', 'bx_tasks', 'do_cancel', '_bx_tasks_form_entry_input_do_cancel', '', 0, 'button', '_bx_tasks_form_entry_input_sys_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 1, 0),
  552. ('bx_tasks_list', 'bx_tasks', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
  553. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  554. ('bx_tasks_list_entry_add', 'title', 2147483647, 1, 1),
  555. ('bx_tasks_list_entry_add', 'controls', 2147483647, 1, 2),
  556. ('bx_tasks_list_entry_add', 'do_submit', 2147483647, 1, 3),
  557. ('bx_tasks_list_entry_add', 'do_cancel', 2147483647, 1, 4),
  558. ('bx_tasks_list_entry_edit', 'title', 2147483647, 1, 1),
  559. ('bx_tasks_list_entry_edit', 'controls', 2147483647, 1, 2),
  560. ('bx_tasks_list_entry_edit', 'do_submit', 2147483647, 1, 3),
  561. ('bx_tasks_list_entry_edit', 'do_cancel', 2147483647, 1, 4);
  562. -- FORMS: context
  563. INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  564. ('bx_tasks_context', 'bx_tasks', '_bx_tasks_form_context', '', '', 'do_submit', 'bx_tasks_contexts', 'id', '', '', '', 0, 1, 'BxTasksFormContext', 'modules/boonex/tasks/classes/BxTasksFormContext.php');
  565. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  566. ('bx_tasks_context_edit', 'bx_tasks', 'bx_tasks_context', '_bx_tasks_form_display_context_edit', 0);
  567. INSERT INTO `sys_form_inputs` (`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  568. ('bx_tasks_context', 'bx_tasks', 'gh_app_id', '', '', 0, 'select', '_bx_tasks_form_context_input_sys_gh_app_id', '_bx_tasks_form_context_input_gh_app_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  569. ('bx_tasks_context', 'bx_tasks', 'gh_username', '', '', 0, 'text', '_bx_tasks_form_context_input_sys_gh_username', '_bx_tasks_form_context_input_gh_username', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  570. ('bx_tasks_context', 'bx_tasks', 'gh_repository', '', '', 0, 'text', '_bx_tasks_form_context_input_sys_gh_repository', '_bx_tasks_form_context_input_gh_repository', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
  571. ('bx_tasks_context', 'bx_tasks', 'do_submit', '_bx_tasks_form_context_input_do_submit', '', 0, 'submit', '_bx_tasks_form_context_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  572. ('bx_tasks_context', 'bx_tasks', 'do_cancel', '_bx_tasks_form_context_input_do_cancel', '', 0, 'button', '_bx_tasks_form_context_input_sys_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 1, 0),
  573. ('bx_tasks_context', 'bx_tasks', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '_bx_tasks_form_context_input_sys_controls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
  574. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  575. ('bx_tasks_context_edit', 'gh_username', 2147483647, 1, 1),
  576. ('bx_tasks_context_edit', 'gh_repository', 2147483647, 1, 2),
  577. ('bx_tasks_context_edit', 'gh_app_id', 2147483647, 1, 3),
  578. ('bx_tasks_context_edit', 'do_submit', 2147483647, 1, 4);
  579. -- FORMS: time
  580. INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  581. ('bx_tasks_time', 'bx_tasks', '_bx_tasks_form_time', 'report.php', 'a:3:{s:2:"id";s:0:"";s:4:"name";s:0:"";s:5:"class";s:17:"bx-report-do-form";}', 'submit', '', 'id', '', '', '', 0, 1, 'BxTasksFormTime', 'modules/boonex/tasks/classes/BxTasksFormTime.php');
  582. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  583. ('bx_tasks_time_add', 'bx_tasks', 'bx_tasks_time', '_bx_tasks_form_display_time_add', 0),
  584. ('bx_tasks_time_edit', 'bx_tasks', 'bx_tasks_time', '_bx_tasks_form_display_time_edit', 0);
  585. INSERT INTO `sys_form_inputs` (`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  586. ('bx_tasks_time', 'bx_tasks', 'sys', '', '', 0, 'hidden', '_bx_tasks_form_time_input_sys_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  587. ('bx_tasks_time', 'bx_tasks', 'object_id', '', '', 0, 'hidden', '_bx_tasks_form_time_input_sys_object_id', '_bx_tasks_form_time_input_object_id', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 0, 0),
  588. ('bx_tasks_time', 'bx_tasks', 'action', '', '', 0, 'hidden', '_bx_tasks_form_time_input_sys_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  589. ('bx_tasks_time', 'bx_tasks', 'value', '', 'value_h,value_div,value_m', 0, 'input_set', '_bx_tasks_form_time_input_sys_value', '_bx_tasks_form_time_input_value', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  590. ('bx_tasks_time', 'bx_tasks', 'value_h', '', '', 0, 'text', '_bx_tasks_form_time_input_sys_value_h', '', '', 0, 0, 0, 'a:1:{s:11:"placeholder";s:45:"_bx_tasks_form_time_input_value_h_placeholder";}', '', '', '', '', '', '', '', 1, 0),
  591. ('bx_tasks_time', 'bx_tasks', 'value_div', '_bx_tasks_form_time_input_value_div', '', 0, 'value', '_bx_tasks_form_time_input_sys_value_div', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  592. ('bx_tasks_time', 'bx_tasks', 'value_m', '', '', 0, 'text', '_bx_tasks_form_time_input_sys_value_m', '', '', 0, 0, 0, 'a:1:{s:11:"placeholder";s:45:"_bx_tasks_form_time_input_value_m_placeholder";}', '', '', '', '', '', '', '', 1, 0),
  593. ('bx_tasks_time', 'bx_tasks', 'value_date', '', '', 0, 'datepicker', '_bx_tasks_form_time_input_sys_value_date', '_bx_tasks_form_time_input_value_date', '', 0, 0, 0, '', '', '', '', '', '', 'DateUtc', '', 1, 0),
  594. ('bx_tasks_time', 'bx_tasks', 'text', '', '', 0, 'textarea', '_bx_tasks_form_time_input_sys_text', '_bx_tasks_form_time_input_text', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
  595. ('bx_tasks_time', 'bx_tasks', 'submit', '_bx_tasks_form_time_input_submit', '', 0, 'submit', '_bx_tasks_form_time_input_sys_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  596. ('bx_tasks_time', 'bx_tasks', 'cancel', '_bx_tasks_form_time_input_cancel', '', 0, 'button', '_bx_tasks_form_time_input_sys_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 1, 0),
  597. ('bx_tasks_time', 'bx_tasks', 'controls', '', 'submit,cancel', 0, 'input_set', '_bx_tasks_form_time_input_sys_controls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
  598. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  599. ('bx_tasks_time_add', 'sys', 2147483647, 1, 1),
  600. ('bx_tasks_time_add', 'object_id', 2147483647, 1, 2),
  601. ('bx_tasks_time_add', 'action', 2147483647, 1, 3),
  602. ('bx_tasks_time_add', 'value', 2147483647, 1, 4),
  603. ('bx_tasks_time_add', 'value_h', 2147483647, 1, 5),
  604. ('bx_tasks_time_add', 'value_div', 2147483647, 1, 6),
  605. ('bx_tasks_time_add', 'value_m', 2147483647, 1, 7),
  606. ('bx_tasks_time_add', 'value_date', 2147483647, 1, 8),
  607. ('bx_tasks_time_add', 'text', 2147483647, 1, 9),
  608. ('bx_tasks_time_add', 'controls', 2147483647, 1, 10),
  609. ('bx_tasks_time_add', 'submit', 2147483647, 1, 11),
  610. ('bx_tasks_time_add', 'cancel', 2147483647, 1, 12),
  611. ('bx_tasks_time_edit', 'value', 2147483647, 1, 1),
  612. ('bx_tasks_time_edit', 'value_h', 2147483647, 1, 2),
  613. ('bx_tasks_time_edit', 'value_div', 2147483647, 1, 3),
  614. ('bx_tasks_time_edit', 'value_m', 2147483647, 1, 4),
  615. ('bx_tasks_time_edit', 'value_date', 2147483647, 1, 5),
  616. ('bx_tasks_time_edit', 'text', 2147483647, 1, 6),
  617. ('bx_tasks_time_edit', 'controls', 2147483647, 1, 7),
  618. ('bx_tasks_time_edit', 'submit', 2147483647, 1, 8),
  619. ('bx_tasks_time_edit', 'cancel', 2147483647, 1, 9);
  620. -- PRE-VALUES
  621. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  622. ('bx_tasks_types', '_bx_tasks_pre_lists_types', 'bx_tasks', '0');
  623. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  624. ('bx_tasks_types', '', 0, '_sys_please_select', ''),
  625. ('bx_tasks_types', '1', 1, '_bx_tasks_type_1', ''),
  626. ('bx_tasks_types', '2', 2, '_bx_tasks_type_2', ''),
  627. ('bx_tasks_types', '3', 3, '_bx_tasks_type_3', '');
  628. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  629. ('bx_tasks_stickers', '_bx_tasks_pre_lists_stickers', 'bx_tasks', '1');
  630. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  631. ('bx_tasks_stickers', '', 0, '_sys_please_select', ''),
  632. ('bx_tasks_stickers', '1', 1, '_bx_tasks_sticker_1', ''),
  633. ('bx_tasks_stickers', '2', 2, '_bx_tasks_sticker_2', ''),
  634. ('bx_tasks_stickers', '3', 3, '_bx_tasks_sticker_3', ''),
  635. ('bx_tasks_stickers', '4', 4, '_bx_tasks_sticker_4', ''),
  636. ('bx_tasks_stickers', '5', 5, '_bx_tasks_sticker_5', '');
  637. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  638. ('bx_tasks_priorities', '_bx_tasks_pre_lists_priorities', 'bx_tasks', '0');
  639. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  640. ('bx_tasks_priorities', '', 0, '_sys_please_select', ''),
  641. ('bx_tasks_priorities', '1', 1, '_bx_tasks_priority_1', ''),
  642. ('bx_tasks_priorities', '2', 2, '_bx_tasks_priority_2', ''),
  643. ('bx_tasks_priorities', '3', 3, '_bx_tasks_priority_3', ''),
  644. ('bx_tasks_priorities', '4', 4, '_bx_tasks_priority_4', ''),
  645. ('bx_tasks_priorities', '5', 5, '_bx_tasks_priority_5', '');
  646. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  647. ('bx_tasks_estimates', '_bx_tasks_pre_lists_estimates', 'bx_tasks', '0');
  648. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  649. ('bx_tasks_estimates', '', 0, '_sys_please_select', ''),
  650. ('bx_tasks_estimates', '2', 1, '_bx_tasks_estimate_2', ''),
  651. ('bx_tasks_estimates', '4', 1, '_bx_tasks_estimate_4', ''),
  652. ('bx_tasks_estimates', '8', 1, '_bx_tasks_estimate_8', ''),
  653. ('bx_tasks_estimates', '16', 1, '_bx_tasks_estimate_16', ''),
  654. ('bx_tasks_estimates', '32', 1, '_bx_tasks_estimate_32', ''),
  655. ('bx_tasks_estimates', '64', 1, '_bx_tasks_estimate_64', '');
  656. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  657. ('bx_tasks_states', '_bx_tasks_pre_lists_states', 'bx_tasks', '0');
  658. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  659. ('bx_tasks_states', '', 0, '_sys_please_select', ''),
  660. ('bx_tasks_states', '1', 1, '_bx_tasks_state_1', ''),
  661. ('bx_tasks_states', '2', 2, '_bx_tasks_state_2', ''),
  662. ('bx_tasks_states', '3', 3, '_bx_tasks_state_3', ''),
  663. ('bx_tasks_states', '4', 4, '_bx_tasks_state_4', ''),
  664. ('bx_tasks_states', '5', 5, '_bx_tasks_state_5', ''),
  665. ('bx_tasks_states', '6', 6, '_bx_tasks_state_6', ''),
  666. ('bx_tasks_states', '7', 7, '_bx_tasks_state_7', '');
  667. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  668. ('bx_tasks_cats', '_bx_tasks_pre_lists_cats', 'bx_tasks', '0');
  669. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  670. ('bx_tasks_cats', '', 0, '_sys_please_select', ''),
  671. ('bx_tasks_cats', '1', 1, '_bx_tasks_cat_Animals_Pets', ''),
  672. ('bx_tasks_cats', '2', 2, '_bx_tasks_cat_Architecture', ''),
  673. ('bx_tasks_cats', '3', 3, '_bx_tasks_cat_Art', ''),
  674. ('bx_tasks_cats', '4', 4, '_bx_tasks_cat_Cars_Motorcycles', ''),
  675. ('bx_tasks_cats', '5', 5, '_bx_tasks_cat_Celebrities', ''),
  676. ('bx_tasks_cats', '6', 6, '_bx_tasks_cat_Design', ''),
  677. ('bx_tasks_cats', '7', 7, '_bx_tasks_cat_DIY_Crafts', ''),
  678. ('bx_tasks_cats', '8', 8, '_bx_tasks_cat_Education', ''),
  679. ('bx_tasks_cats', '9', 9, '_bx_tasks_cat_Film_Music_Books', ''),
  680. ('bx_tasks_cats', '10', 10, '_bx_tasks_cat_Food_Drink', ''),
  681. ('bx_tasks_cats', '11', 11, '_bx_tasks_cat_Gardening', ''),
  682. ('bx_tasks_cats', '12', 12, '_bx_tasks_cat_Geek', ''),
  683. ('bx_tasks_cats', '13', 13, '_bx_tasks_cat_Hair_Beauty', ''),
  684. ('bx_tasks_cats', '14', 14, '_bx_tasks_cat_Health_Fitness', ''),
  685. ('bx_tasks_cats', '15', 15, '_bx_tasks_cat_History', ''),
  686. ('bx_tasks_cats', '16', 16, '_bx_tasks_cat_Holidays_Events', ''),
  687. ('bx_tasks_cats', '17', 17, '_bx_tasks_cat_Home_Decor', ''),
  688. ('bx_tasks_cats', '18', 18, '_bx_tasks_cat_Humor', ''),
  689. ('bx_tasks_cats', '19', 19, '_bx_tasks_cat_Illustrations_Posters', ''),
  690. ('bx_tasks_cats', '20', 20, '_bx_tasks_cat_Kids_Parenting', ''),
  691. ('bx_tasks_cats', '21', 21, '_bx_tasks_cat_Mens_Fashion', ''),
  692. ('bx_tasks_cats', '22', 22, '_bx_tasks_cat_Outdoors', ''),
  693. ('bx_tasks_cats', '23', 23, '_bx_tasks_cat_Photography', ''),
  694. ('bx_tasks_cats', '24', 24, '_bx_tasks_cat_Products', ''),
  695. ('bx_tasks_cats', '25', 25, '_bx_tasks_cat_Quotes', ''),
  696. ('bx_tasks_cats', '26', 26, '_bx_tasks_cat_Science_Nature', ''),
  697. ('bx_tasks_cats', '27', 27, '_bx_tasks_cat_Sports', ''),
  698. ('bx_tasks_cats', '28', 28, '_bx_tasks_cat_Tattoos', ''),
  699. ('bx_tasks_cats', '29', 29, '_bx_tasks_cat_Technology', ''),
  700. ('bx_tasks_cats', '30', 30, '_bx_tasks_cat_Travel', ''),
  701. ('bx_tasks_cats', '31', 31, '_bx_tasks_cat_Weddings', ''),
  702. ('bx_tasks_cats', '32', 32, '_bx_tasks_cat_Womens_Fashion', '');
  703. -- COMMENTS
  704. INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `CharsPostMax`, `CharsDisplayMax`, `Html`, `PerView`, `PerViewReplies`, `BrowseType`, `IsBrowseSwitch`, `PostFormPosition`, `NumberOfLevels`, `IsDisplaySwitch`, `IsRatable`, `ViewingThreshold`, `IsOn`, `RootStylePrefix`, `BaseUrl`, `ObjectVote`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldTitle`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES
  705. ('bx_tasks', 'bx_tasks', 'bx_tasks_cmts', 1, 5000, 1000, 3, 50, 10, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-task&id={object_id}', '', 'bx_tasks_tasks', 'id', 'author', 'title', 'comments', 'BxTasksCmts', 'modules/boonex/tasks/classes/BxTasksCmts.php'),
  706. ('bx_tasks_notes', 'bx_tasks', 'bx_tasks_cmts_notes', 1, 5000, 1000, 0, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-task&id={object_id}', '', 'bx_tasks_tasks', 'id', 'author', 'title', '', 'BxTemplCmtsNotes', '');
  707. -- VOTES
  708. INSERT INTO `sys_objects_vote` (`Name`, `Module`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  709. ('bx_tasks', 'bx_tasks', 'bx_tasks_votes', 'bx_tasks_votes_track', '604800', '1', '1', '0', '1', 'bx_tasks_tasks', 'id', 'author', 'rate', 'votes', '', ''),
  710. ('bx_tasks_reactions', 'bx_tasks', 'bx_tasks_reactions', 'bx_tasks_reactions_track', '604800', '1', '1', '1', '1', 'bx_tasks_tasks', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
  711. -- SCORES
  712. INSERT INTO `sys_objects_score` (`name`, `module`, `table_main`, `table_track`, `post_timeout`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_score`, `trigger_field_cup`, `trigger_field_cdown`, `class_name`, `class_file`) VALUES
  713. ('bx_tasks', 'bx_tasks', 'bx_tasks_scores', 'bx_tasks_scores_track', '604800', '0', 'bx_tasks_tasks', 'id', 'author', 'score', 'sc_up', 'sc_down', '', '');
  714. -- REPORTS
  715. INSERT INTO `sys_objects_report` (`name`, `module`, `table_main`, `table_track`, `pruning`, `is_on`, `base_url`, `object_comment`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  716. ('bx_tasks', 'bx_tasks', 'bx_tasks_reports', 'bx_tasks_reports_track', '31536000', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_notes', 'bx_tasks_tasks', 'id', 'author', 'reports', '', ''),
  717. ('bx_tasks_time', 'bx_tasks', 'bx_tasks_time', 'bx_tasks_time_track', '0', '1', 'page.php?i=view-task&id={object_id}', '', 'bx_tasks_tasks', 'id', 'author', 'time', 'BxTasksTime', 'modules/boonex/tasks/classes/BxTasksTime.php');
  718. -- VIEWS
  719. INSERT INTO `sys_objects_view` (`name`, `module`, `table_track`, `period`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  720. ('bx_tasks', 'bx_tasks', 'bx_tasks_views_track', '86400', '1', 'bx_tasks_tasks', 'id', 'author', 'views', '', '');
  721. -- FAFORITES
  722. INSERT INTO `sys_objects_favorite` (`name`, `table_track`, `is_on`, `is_undo`, `is_public`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  723. ('bx_tasks', 'bx_tasks_favorites_track', '1', '1', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_tasks', 'id', 'author', 'favorites', '', '');
  724. -- FEATURED
  725. INSERT INTO `sys_objects_feature` (`name`, `module`, `is_on`, `is_undo`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_flag`, `class_name`, `class_file`) VALUES
  726. ('bx_tasks', 'bx_tasks', '1', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_tasks', 'id', 'author', 'featured', '', '');
  727. -- CONTENT INFO
  728. INSERT INTO `sys_objects_content_info` (`name`, `title`, `alert_unit`, `alert_action_add`, `alert_action_update`, `alert_action_delete`, `class_name`, `class_file`) VALUES
  729. ('bx_tasks', '_bx_tasks', 'bx_tasks', 'added', 'edited', 'deleted', '', ''),
  730. ('bx_tasks_cmts', '_bx_tasks_cmts', 'bx_tasks', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
  731. -- SEARCH EXTENDED
  732. INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
  733. ('bx_tasks', 'bx_tasks', 'bx_tasks', '_bx_tasks_search_extended', 1, '', ''),
  734. ('bx_tasks_cmts', 'bx_tasks_cmts', 'bx_tasks', '_bx_tasks_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
  735. -- STUDIO: page & widget
  736. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  737. (3, 'bx_tasks', '_bx_tasks', '_bx_tasks', 'bx_tasks@modules/boonex/tasks/|std-icon.svg');
  738. SET @iPageId = LAST_INSERT_ID();
  739. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  740. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  741. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  742. (@iPageId, 'bx_tasks', 'content', '{url_studio}module.php?name=bx_tasks', '', 'bx_tasks@modules/boonex/tasks/|std-icon.svg', '_bx_tasks', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  743. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  744. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));