install.sql 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  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. `type` int(11) NOT NULL default '0',
  11. `priority` int(11) NOT NULL default '0',
  12. `estimate` int(11) NOT NULL default '0',
  13. `state` int(11) NOT NULL default '0',
  14. `cat` int(11) NOT NULL,
  15. `multicat` text NOT NULL,
  16. `text` mediumtext NOT NULL,
  17. `labels` text NOT NULL,
  18. `time` int(11) NOT NULL default '0',
  19. `views` int(11) NOT NULL default '0',
  20. `rate` float NOT NULL default '0',
  21. `votes` int(11) NOT NULL default '0',
  22. `rrate` float NOT NULL default '0',
  23. `rvotes` int(11) NOT NULL default '0',
  24. `score` int(11) NOT NULL default '0',
  25. `sc_up` int(11) NOT NULL default '0',
  26. `sc_down` int(11) NOT NULL default '0',
  27. `favorites` int(11) NOT NULL default '0',
  28. `comments` int(11) NOT NULL default '0',
  29. `reports` int(11) NOT NULL default '0',
  30. `featured` int(11) NOT NULL default '0',
  31. `due_date` int(11) NOT NULL,
  32. `tasks_list` int(11) NOT NULL,
  33. `gh_issue` int(11) NOT NULL default '0',
  34. `gh_issue_url` varchar(255) NOT NULL default '',
  35. `completed` tinyint(4) NOT NULL DEFAULT '0',
  36. `expired` tinyint(4) NOT NULL DEFAULT '0',
  37. `cf` int(11) NOT NULL default '1',
  38. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  39. `allow_comments` tinyint(4) NOT NULL DEFAULT '1',
  40. `status` enum('active','awaiting','failed','hidden') NOT NULL DEFAULT 'active',
  41. `status_admin` enum('active','hidden','pending') NOT NULL DEFAULT 'active',
  42. PRIMARY KEY (`id`),
  43. FULLTEXT KEY `title_text` (`title`,`text`)
  44. );
  45. -- TABLE: task-lists
  46. CREATE TABLE IF NOT EXISTS `bx_tasks_lists` (
  47. `id` int(11) NOT NULL AUTO_INCREMENT,
  48. `context_id` int(11) NOT NULL,
  49. `title` varchar(255) NOT NULL,
  50. PRIMARY KEY (`id`)
  51. );
  52. -- TABLE: contexts
  53. CREATE TABLE IF NOT EXISTS `bx_tasks_contexts` (
  54. `id` int(11) NOT NULL DEFAULT '0',
  55. `gh_username` varchar(64) NOT NULL DEFAULT '',
  56. `gh_repository` varchar(255) NOT NULL DEFAULT '',
  57. PRIMARY KEY (`id`)
  58. );
  59. -- TABLE: assignment
  60. CREATE TABLE IF NOT EXISTS `bx_tasks_assignments` (
  61. `id` int(11) NOT NULL AUTO_INCREMENT,
  62. `initiator` int(11) NOT NULL,
  63. `content` int(11) NOT NULL,
  64. `added` int(10) unsigned NOT NULL,
  65. PRIMARY KEY (`id`),
  66. UNIQUE KEY `initiator` (`initiator`,`content`),
  67. KEY `content` (`content`)
  68. );
  69. -- TABLE: filters
  70. CREATE TABLE IF NOT EXISTS `bx_tasks_filters` (
  71. `id` int(11) NOT NULL AUTO_INCREMENT,
  72. `author` int(11) NOT NULL DEFAULT '0',
  73. `added` int(11) NOT NULL DEFAULT '0',
  74. `title` varchar(255) NOT NULL,
  75. `conditions` text NOT NULL,
  76. `active` TINYINT NOT NULL DEFAULT '1',
  77. `order` int(11) NOT NULL DEFAULT '0',
  78. PRIMARY KEY (`id`)
  79. );
  80. INSERT INTO `bx_tasks_filters` (`author`, `added`, `title`, `conditions`, `active`, `order`) VALUES
  81. ('0', '0', '_bx_tasks_filter_title_by_author', '{"where":{"cnd":true,"t":"te","f":"author","v":"{logged_pid}","o":"="}}', 1, 1),
  82. ('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, 2),
  83. ('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, 3),
  84. ('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, 4),
  85. ('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, 5),
  86. ('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, 6);
  87. -- TABLE: storages & transcoders
  88. CREATE TABLE IF NOT EXISTS `bx_tasks_covers` (
  89. `id` int(11) NOT NULL AUTO_INCREMENT,
  90. `profile_id` int(10) unsigned NOT NULL,
  91. `remote_id` varchar(128) NOT NULL,
  92. `path` varchar(255) NOT NULL,
  93. `file_name` varchar(255) NOT NULL,
  94. `mime_type` varchar(128) NOT NULL,
  95. `ext` varchar(32) NOT NULL,
  96. `size` bigint(20) NOT NULL,
  97. `added` int(11) NOT NULL,
  98. `modified` int(11) NOT NULL,
  99. `private` int(11) NOT NULL,
  100. PRIMARY KEY (`id`),
  101. UNIQUE KEY `remote_id` (`remote_id`)
  102. );
  103. CREATE TABLE IF NOT EXISTS `bx_tasks_files` (
  104. `id` int(11) NOT NULL AUTO_INCREMENT,
  105. `profile_id` int(10) unsigned NOT NULL,
  106. `remote_id` varchar(128) NOT NULL,
  107. `path` varchar(255) NOT NULL,
  108. `file_name` varchar(255) NOT NULL,
  109. `mime_type` varchar(128) NOT NULL,
  110. `ext` varchar(32) NOT NULL,
  111. `size` bigint(20) NOT NULL,
  112. `added` int(11) NOT NULL,
  113. `modified` int(11) NOT NULL,
  114. `private` int(11) NOT NULL,
  115. PRIMARY KEY (`id`),
  116. UNIQUE KEY `remote_id` (`remote_id`)
  117. );
  118. CREATE TABLE IF NOT EXISTS `bx_tasks_photos` (
  119. `id` int(11) NOT NULL AUTO_INCREMENT,
  120. `profile_id` int(10) unsigned NOT NULL,
  121. `remote_id` varchar(128) NOT NULL,
  122. `path` varchar(255) NOT NULL,
  123. `file_name` varchar(255) NOT NULL,
  124. `mime_type` varchar(128) NOT NULL,
  125. `ext` varchar(32) NOT NULL,
  126. `size` bigint(20) NOT NULL,
  127. `added` int(11) NOT NULL,
  128. `modified` int(11) NOT NULL,
  129. `private` int(11) NOT NULL,
  130. PRIMARY KEY (`id`),
  131. UNIQUE KEY `remote_id` (`remote_id`)
  132. );
  133. CREATE TABLE IF NOT EXISTS `bx_tasks_photos_resized` (
  134. `id` int(11) NOT NULL AUTO_INCREMENT,
  135. `profile_id` int(10) unsigned NOT NULL,
  136. `remote_id` varchar(128) NOT NULL,
  137. `path` varchar(255) NOT NULL,
  138. `file_name` varchar(255) NOT NULL,
  139. `mime_type` varchar(128) NOT NULL,
  140. `ext` varchar(32) NOT NULL,
  141. `size` bigint(20) NOT NULL,
  142. `added` int(11) NOT NULL,
  143. `modified` int(11) NOT NULL,
  144. `private` int(11) NOT NULL,
  145. PRIMARY KEY (`id`),
  146. UNIQUE KEY `remote_id` (`remote_id`)
  147. );
  148. CREATE TABLE IF NOT EXISTS `bx_tasks_videos` (
  149. `id` int(11) NOT NULL AUTO_INCREMENT,
  150. `profile_id` int(10) unsigned NOT NULL,
  151. `remote_id` varchar(128) NOT NULL,
  152. `path` varchar(255) NOT NULL,
  153. `file_name` varchar(255) NOT NULL,
  154. `mime_type` varchar(128) NOT NULL,
  155. `ext` varchar(32) NOT NULL,
  156. `size` bigint(20) NOT NULL,
  157. `dimensions` varchar(12) NOT NULL,
  158. `added` int(11) NOT NULL,
  159. `modified` int(11) NOT NULL,
  160. `private` int(11) NOT NULL,
  161. PRIMARY KEY (`id`),
  162. UNIQUE KEY `remote_id` (`remote_id`)
  163. );
  164. CREATE TABLE IF NOT EXISTS `bx_tasks_videos_resized` (
  165. `id` int(11) NOT NULL AUTO_INCREMENT,
  166. `profile_id` int(10) unsigned NOT NULL,
  167. `remote_id` varchar(128) NOT NULL,
  168. `path` varchar(255) NOT NULL,
  169. `file_name` varchar(255) NOT NULL,
  170. `mime_type` varchar(128) NOT NULL,
  171. `ext` varchar(32) NOT NULL,
  172. `size` bigint(20) NOT NULL,
  173. `added` int(11) NOT NULL,
  174. `modified` int(11) NOT NULL,
  175. `private` int(11) NOT NULL,
  176. PRIMARY KEY (`id`),
  177. UNIQUE KEY `remote_id` (`remote_id`)
  178. );
  179. -- TABLE: comments
  180. CREATE TABLE IF NOT EXISTS `bx_tasks_cmts` (
  181. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  182. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  183. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  184. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  185. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  186. `cmt_level` int(11) NOT NULL DEFAULT '0',
  187. `cmt_text` text NOT NULL,
  188. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  189. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  190. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  191. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  192. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  193. `cmt_pinned` int(11) NOT NULL default '0',
  194. `cmt_cf` int(11) NOT NULL default '1',
  195. PRIMARY KEY (`cmt_id`),
  196. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  197. FULLTEXT KEY `search_fields` (`cmt_text`)
  198. );
  199. CREATE TABLE IF NOT EXISTS `bx_tasks_cmts_notes` (
  200. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  201. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  202. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  203. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  204. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  205. `cmt_level` int(11) NOT NULL DEFAULT '0',
  206. `cmt_text` text NOT NULL,
  207. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  208. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  209. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  210. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  211. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  212. `cmt_pinned` int(11) NOT NULL default '0',
  213. PRIMARY KEY (`cmt_id`),
  214. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  215. FULLTEXT KEY `search_fields` (`cmt_text`)
  216. );
  217. -- TABLE: votes
  218. CREATE TABLE IF NOT EXISTS `bx_tasks_votes` (
  219. `id` int(11) NOT NULL AUTO_INCREMENT,
  220. `object_id` int(11) NOT NULL default '0',
  221. `count` int(11) NOT NULL default '0',
  222. `sum` int(11) NOT NULL default '0',
  223. PRIMARY KEY (`id`),
  224. UNIQUE KEY `object_id` (`object_id`)
  225. );
  226. CREATE TABLE IF NOT EXISTS `bx_tasks_votes_track` (
  227. `id` int(11) NOT NULL AUTO_INCREMENT,
  228. `object_id` int(11) NOT NULL default '0',
  229. `author_id` int(11) NOT NULL default '0',
  230. `author_nip` int(11) unsigned NOT NULL default '0',
  231. `value` tinyint(4) NOT NULL default '0',
  232. `date` int(11) NOT NULL default '0',
  233. PRIMARY KEY (`id`),
  234. KEY `vote` (`object_id`, `author_nip`)
  235. );
  236. CREATE TABLE IF NOT EXISTS `bx_tasks_reactions` (
  237. `id` int(11) NOT NULL AUTO_INCREMENT,
  238. `object_id` int(11) NOT NULL default '0',
  239. `reaction` varchar(32) NOT NULL default '',
  240. `count` int(11) NOT NULL default '0',
  241. `sum` int(11) NOT NULL default '0',
  242. PRIMARY KEY (`id`),
  243. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  244. );
  245. CREATE TABLE IF NOT EXISTS `bx_tasks_reactions_track` (
  246. `id` int(11) NOT NULL AUTO_INCREMENT,
  247. `object_id` int(11) NOT NULL default '0',
  248. `author_id` int(11) NOT NULL default '0',
  249. `author_nip` int(11) unsigned NOT NULL default '0',
  250. `reaction` varchar(32) NOT NULL default '',
  251. `value` tinyint(4) NOT NULL default '0',
  252. `date` int(11) NOT NULL default '0',
  253. PRIMARY KEY (`id`),
  254. KEY `vote` (`object_id`, `author_nip`)
  255. );
  256. -- TABLE: views
  257. CREATE TABLE `bx_tasks_views_track` (
  258. `id` int(11) NOT NULL AUTO_INCREMENT,
  259. `object_id` int(11) NOT NULL default '0',
  260. `viewer_id` int(11) NOT NULL default '0',
  261. `viewer_nip` int(11) unsigned NOT NULL default '0',
  262. `date` int(11) NOT NULL default '0',
  263. PRIMARY KEY (`id`),
  264. KEY `id` (`object_id`,`viewer_id`,`viewer_nip`)
  265. );
  266. -- TABLE: metas
  267. CREATE TABLE `bx_tasks_meta_keywords` (
  268. `id` int(11) NOT NULL AUTO_INCREMENT,
  269. `object_id` int(10) unsigned NOT NULL,
  270. `keyword` varchar(255) NOT NULL,
  271. PRIMARY KEY (`id`),
  272. KEY `object_id` (`object_id`),
  273. KEY `keyword` (`keyword`)
  274. );
  275. CREATE TABLE `bx_tasks_meta_mentions` (
  276. `id` int(11) NOT NULL AUTO_INCREMENT,
  277. `object_id` int(10) unsigned NOT NULL,
  278. `profile_id` int(10) unsigned NOT NULL,
  279. PRIMARY KEY (`id`),
  280. KEY `object_id` (`object_id`),
  281. KEY `profile_id` (`profile_id`)
  282. );
  283. -- TABLE: reports
  284. CREATE TABLE IF NOT EXISTS `bx_tasks_reports` (
  285. `id` int(11) NOT NULL AUTO_INCREMENT,
  286. `object_id` int(11) NOT NULL default '0',
  287. `count` int(11) NOT NULL default '0',
  288. PRIMARY KEY (`id`),
  289. UNIQUE KEY `object_id` (`object_id`)
  290. );
  291. CREATE TABLE IF NOT EXISTS `bx_tasks_reports_track` (
  292. `id` int(11) NOT NULL AUTO_INCREMENT,
  293. `object_id` int(11) NOT NULL default '0',
  294. `author_id` int(11) NOT NULL default '0',
  295. `author_nip` int(11) unsigned NOT NULL default '0',
  296. `type` varchar(32) NOT NULL default '',
  297. `text` text NOT NULL default '',
  298. `date` int(11) NOT NULL default '0',
  299. `checked_by` int(11) NOT NULL default '0',
  300. `status` tinyint(11) NOT NULL default '0',
  301. PRIMARY KEY (`id`),
  302. KEY `report` (`object_id`, `author_nip`)
  303. );
  304. -- TABLE: time
  305. CREATE TABLE IF NOT EXISTS `bx_tasks_time` (
  306. `id` int(11) NOT NULL AUTO_INCREMENT,
  307. `object_id` int(11) NOT NULL default '0',
  308. `count` int(11) NOT NULL default '0',
  309. `sum` int(11) NOT NULL default '0',
  310. PRIMARY KEY (`id`),
  311. UNIQUE KEY `object_id` (`object_id`)
  312. );
  313. CREATE TABLE IF NOT EXISTS `bx_tasks_time_track` (
  314. `id` int(11) NOT NULL AUTO_INCREMENT,
  315. `object_id` int(11) NOT NULL default '0',
  316. `author_id` int(11) NOT NULL default '0',
  317. `author_nip` int(11) unsigned NOT NULL default '0',
  318. `value` int(11) NOT NULL default '0',
  319. `value_date` int(11) NOT NULL default '0',
  320. `text` text NOT NULL default '',
  321. `date` int(11) NOT NULL default '0',
  322. PRIMARY KEY (`id`)
  323. );
  324. -- TABLE: timers
  325. CREATE TABLE IF NOT EXISTS `bx_tasks_timers` (
  326. `id` int(11) NOT NULL AUTO_INCREMENT,
  327. `content_id` int(11) NOT NULL default '0',
  328. `profile_id` int(11) NOT NULL default '0',
  329. `started` int(11) NOT NULL default '0',
  330. `duration` int(11) NOT NULL default '0',
  331. PRIMARY KEY (`id`),
  332. UNIQUE KEY `timer` (`content_id`, `profile_id`)
  333. );
  334. -- TABLE: favorites
  335. CREATE TABLE `bx_tasks_favorites_track` (
  336. `id` int(11) NOT NULL AUTO_INCREMENT,
  337. `object_id` int(11) NOT NULL default '0',
  338. `author_id` int(11) NOT NULL default '0',
  339. `date` int(11) NOT NULL default '0',
  340. PRIMARY KEY (`id`),
  341. KEY `id` (`object_id`,`author_id`)
  342. );
  343. -- TABLE: scores
  344. CREATE TABLE IF NOT EXISTS `bx_tasks_scores` (
  345. `id` int(11) NOT NULL AUTO_INCREMENT,
  346. `object_id` int(11) NOT NULL default '0',
  347. `count_up` int(11) NOT NULL default '0',
  348. `count_down` int(11) NOT NULL default '0',
  349. PRIMARY KEY (`id`),
  350. UNIQUE KEY `object_id` (`object_id`)
  351. );
  352. CREATE TABLE IF NOT EXISTS `bx_tasks_scores_track` (
  353. `id` int(11) NOT NULL AUTO_INCREMENT,
  354. `object_id` int(11) NOT NULL default '0',
  355. `author_id` int(11) NOT NULL default '0',
  356. `author_nip` int(11) unsigned NOT NULL default '0',
  357. `type` varchar(8) NOT NULL default '',
  358. `date` int(11) NOT NULL default '0',
  359. PRIMARY KEY (`id`),
  360. KEY `vote` (`object_id`, `author_nip`)
  361. );
  362. -- STORAGES & TRANSCODERS
  363. SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
  364. 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
  365. ('bx_tasks_covers', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_covers', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  366. ('bx_tasks_photos', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_photos', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  367. ('bx_tasks_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_photos_resized', 'allow-deny', '{image}', '', 0, 0, 0, 0, 0, 0),
  368. ('bx_tasks_videos', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_videos', 'allow-deny', '{video}', '', 0, 0, 0, 0, 0, 0),
  369. ('bx_tasks_videos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_videos_resized', 'allow-deny', '{imagevideo}', '', 0, 0, 0, 0, 0, 0),
  370. ('bx_tasks_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_tasks_files', 'deny-allow', '', '{dangerous}', 0, 0, 0, 0, 0, 0);
  371. 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
  372. ('bx_tasks_preview', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  373. ('bx_tasks_gallery', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  374. ('bx_tasks_cover', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_covers";}', 'no', '1', '2592000', '0', '', ''),
  375. ('bx_tasks_preview_photos', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_photos";}', 'no', '1', '2592000', '0', '', ''),
  376. ('bx_tasks_gallery_photos', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_photos";}', 'no', '1', '2592000', '0', '', ''),
  377. ('bx_tasks_videos_poster', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  378. ('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', ''),
  379. ('bx_tasks_videos_mp4', 'bx_tasks_videos_resized', 'Storage', 'a:1:{s:6:"object";s:15:"bx_tasks_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  380. ('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', ''),
  381. ('bx_tasks_preview_files', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_tasks_files";}', 'no', '1', '2592000', '0', '', ''),
  382. ('bx_tasks_gallery_files', 'bx_tasks_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_tasks_files";}', 'no', '1', '2592000', '0', '', '');
  383. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  384. ('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'),
  385. ('bx_tasks_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
  386. ('bx_tasks_cover', 'Resize', 'a:1:{s:1:"w";s:4:"1200";}', '0'),
  387. ('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'),
  388. ('bx_tasks_gallery_photos', 'Resize', 'a:1:{s:1:"w";s:4:"1200";}', '0'),
  389. ('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),
  390. ('bx_tasks_videos_poster_preview', 'Poster', 'a:2:{s:1:"h";s:3:"480";s:10:"force_type";s:3:"jpg";}', 0),
  391. ('bx_tasks_videos_poster', 'Poster', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"jpg";}', 0),
  392. ('bx_tasks_videos_mp4', 'Mp4', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"mp4";}', 0),
  393. ('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),
  394. ('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'),
  395. ('bx_tasks_gallery_files', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0');
  396. -- FORMS: entry (task)
  397. 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
  398. ('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');
  399. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  400. ('bx_tasks', 'bx_tasks_entry_add', 'bx_tasks', 0, '_bx_tasks_form_entry_display_add'),
  401. ('bx_tasks', 'bx_tasks_entry_delete', 'bx_tasks', 0, '_bx_tasks_form_entry_display_delete'),
  402. ('bx_tasks', 'bx_tasks_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit'),
  403. ('bx_tasks', 'bx_tasks_entry_edit_body', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_body'),
  404. ('bx_tasks', 'bx_tasks_entry_edit_type', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_type'),
  405. ('bx_tasks', 'bx_tasks_entry_edit_priority', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_priority'),
  406. ('bx_tasks', 'bx_tasks_entry_edit_estimate', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_estimate'),
  407. ('bx_tasks', 'bx_tasks_entry_edit_due_date', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_due_date'),
  408. ('bx_tasks', 'bx_tasks_entry_edit_state', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_state'),
  409. ('bx_tasks', 'bx_tasks_entry_view', 'bx_tasks', 1, '_bx_tasks_form_entry_display_view');
  410. 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
  411. ('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),
  412. ('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),
  413. ('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),
  414. ('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),
  415. ('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),
  416. ('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),
  417. ('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),
  418. ('bx_tasks', 'bx_tasks', 'controls', '', 'do_publish,do_cancel', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  419. ('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),
  420. ('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),
  421. ('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),
  422. ('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),
  423. ('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),
  424. ('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),
  425. ('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),
  426. ('bx_tasks', 'bx_tasks', 'title', '', '', 0, 'text', '_bx_tasks_form_entry_input_sys_title', '_bx_tasks_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_entry_input_title_err', 'Xss', '', 1, 0),
  427. ('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),
  428. ('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),
  429. ('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),
  430. ('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),
  431. ('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),
  432. ('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),
  433. ('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),
  434. ('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),
  435. ('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),
  436. ('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),
  437. ('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),
  438. ('bx_tasks', 'bx_tasks', 'attachments', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  439. ('bx_tasks', 'bx_tasks', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  440. ('bx_tasks', 'bx_tasks', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  441. ('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),
  442. ('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);
  443. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  444. ('bx_tasks_entry_add', 'title', 2147483647, 1, 1),
  445. ('bx_tasks_entry_add', 'text', 2147483647, 1, 2),
  446. ('bx_tasks_entry_add', 'initial_members', 192, 1, 3),
  447. ('bx_tasks_entry_add', 'due_date', 192, 1, 4),
  448. ('bx_tasks_entry_add', 'type', 2147483647, 1, 5),
  449. ('bx_tasks_entry_add', 'priority', 2147483647, 1, 6),
  450. ('bx_tasks_entry_add', 'estimate', 2147483647, 1, 7),
  451. ('bx_tasks_entry_add', 'controls', 2147483647, 1, 8),
  452. ('bx_tasks_entry_add', 'do_publish', 2147483647, 1, 9),
  453. ('bx_tasks_entry_add', 'do_cancel', 2147483647, 1, 10),
  454. ('bx_tasks_entry_delete', 'delete_confirm', 2147483647, 1, 1),
  455. ('bx_tasks_entry_delete', 'do_submit', 2147483647, 1, 2),
  456. ('bx_tasks_entry_edit', 'title', 2147483647, 1, 1),
  457. ('bx_tasks_entry_edit', 'text', 2147483647, 1, 2),
  458. ('bx_tasks_entry_edit', 'attachments', 2147483647, 1, 3),
  459. ('bx_tasks_entry_edit', 'pictures', 2147483647, 1, 4),
  460. ('bx_tasks_entry_edit', 'videos', 2147483647, 1, 5),
  461. ('bx_tasks_entry_edit', 'files', 2147483647, 1, 6),
  462. ('bx_tasks_entry_edit', 'allow_view_to', 2147483647, 1, 7),
  463. ('bx_tasks_entry_edit', 'cf', 2147483647, 1, 8),
  464. ('bx_tasks_entry_edit', 'initial_members', 192, 1, 9),
  465. ('bx_tasks_entry_edit', 'due_date', 192, 1, 10),
  466. ('bx_tasks_entry_edit', 'type', 2147483647, 1, 11),
  467. ('bx_tasks_entry_edit', 'priority', 2147483647, 1, 12),
  468. ('bx_tasks_entry_edit', 'estimate', 2147483647, 1, 13),
  469. ('bx_tasks_entry_edit', 'controls_edit', 2147483647, 1, 14),
  470. ('bx_tasks_entry_edit', 'do_submit', 2147483647, 1, 15),
  471. ('bx_tasks_entry_edit', 'do_cancel_edit', 2147483647, 1, 16),
  472. ('bx_tasks_entry_edit_body', 'title', 2147483647, 1, 1),
  473. ('bx_tasks_entry_edit_body', 'text', 2147483647, 1, 2),
  474. ('bx_tasks_entry_edit_body', 'do_submit', 2147483647, 1, 3),
  475. ('bx_tasks_entry_edit_state', 'state', 2147483647, 1, 1),
  476. ('bx_tasks_entry_edit_state', 'controls_edit_popup', 2147483647, 1, 2),
  477. ('bx_tasks_entry_edit_state', 'do_submit', 2147483647, 1, 3),
  478. ('bx_tasks_entry_edit_state', 'do_cancel', 2147483647, 1, 4),
  479. ('bx_tasks_entry_edit_type', 'type', 2147483647, 1, 1),
  480. ('bx_tasks_entry_edit_type', 'controls_edit_popup', 2147483647, 1, 2),
  481. ('bx_tasks_entry_edit_type', 'do_submit', 2147483647, 1, 3),
  482. ('bx_tasks_entry_edit_type', 'do_cancel', 2147483647, 1, 4),
  483. ('bx_tasks_entry_edit_priority', 'priority', 2147483647, 1, 1),
  484. ('bx_tasks_entry_edit_priority', 'controls_edit_popup', 2147483647, 1, 2),
  485. ('bx_tasks_entry_edit_priority', 'do_submit', 2147483647, 1, 3),
  486. ('bx_tasks_entry_edit_priority', 'do_cancel', 2147483647, 1, 4),
  487. ('bx_tasks_entry_edit_estimate', 'estimate', 2147483647, 1, 1),
  488. ('bx_tasks_entry_edit_estimate', 'controls_edit_popup', 2147483647, 1, 2),
  489. ('bx_tasks_entry_edit_estimate', 'do_submit', 2147483647, 1, 3),
  490. ('bx_tasks_entry_edit_estimate', 'do_cancel', 2147483647, 1, 4),
  491. ('bx_tasks_entry_edit_due_date', 'due_date', 192, 1, 1),
  492. ('bx_tasks_entry_edit_due_date', 'controls_edit_popup', 2147483647, 1, 2),
  493. ('bx_tasks_entry_edit_due_date', 'do_submit', 2147483647, 1, 3),
  494. ('bx_tasks_entry_edit_due_date', 'do_cancel', 2147483647, 1, 4),
  495. ('bx_tasks_entry_view', 'type', 2147483647, 1, 1),
  496. ('bx_tasks_entry_view', 'priority', 2147483647, 1, 2),
  497. ('bx_tasks_entry_view', 'estimate', 2147483647, 1, 3),
  498. ('bx_tasks_entry_view', 'cat', 2147483647, 1, 4),
  499. ('bx_tasks_entry_view', 'added', 2147483647, 1, 5),
  500. ('bx_tasks_entry_view', 'changed', 2147483647, 1, 6),
  501. ('bx_tasks_entry_view', 'due_date', 192, 1, 7),
  502. ('bx_tasks_entry_view', 'state', 2147483647, 1, 8),
  503. ('bx_tasks_entry_view', 'gh_issue_url', 2147483647, 1, 9);
  504. -- FORMS: entry (tasklist)
  505. 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
  506. ('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');
  507. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  508. ('bx_tasks_list', 'bx_tasks_list_entry_add', 'bx_tasks', 0, '_bx_tasks_form_list_entry_display_add'),
  509. ('bx_tasks_list', 'bx_tasks_list_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_list_entry_display_edit');
  510. 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
  511. ('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),
  512. ('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),
  513. ('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),
  514. ('bx_tasks_list', 'bx_tasks', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
  515. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  516. ('bx_tasks_list_entry_add', 'title', 2147483647, 1, 1),
  517. ('bx_tasks_list_entry_add', 'controls', 2147483647, 1, 2),
  518. ('bx_tasks_list_entry_add', 'do_submit', 2147483647, 1, 3),
  519. ('bx_tasks_list_entry_add', 'do_cancel', 2147483647, 1, 4),
  520. ('bx_tasks_list_entry_edit', 'title', 2147483647, 1, 1),
  521. ('bx_tasks_list_entry_edit', 'controls', 2147483647, 1, 2),
  522. ('bx_tasks_list_entry_edit', 'do_submit', 2147483647, 1, 3),
  523. ('bx_tasks_list_entry_edit', 'do_cancel', 2147483647, 1, 4);
  524. -- FORMS: context
  525. 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
  526. ('bx_tasks_context', 'bx_tasks', '_bx_tasks_form_context', '', '', 'do_submit', 'bx_tasks_contexts', 'id', '', '', '', 0, 1, 'BxTasksFormContext', 'modules/boonex/tasks/classes/BxTasksFormContext.php');
  527. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  528. ('bx_tasks_context_edit', 'bx_tasks', 'bx_tasks_context', '_bx_tasks_form_display_context_edit', 0);
  529. 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
  530. ('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),
  531. ('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),
  532. ('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),
  533. ('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),
  534. ('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);
  535. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  536. ('bx_tasks_context_edit', 'gh_username', 2147483647, 1, 1),
  537. ('bx_tasks_context_edit', 'gh_repository', 2147483647, 1, 2),
  538. ('bx_tasks_context_edit', 'controls', 2147483647, 1, 3),
  539. ('bx_tasks_context_edit', 'do_submit', 2147483647, 1, 4),
  540. ('bx_tasks_context_edit', 'do_cancel', 2147483647, 1, 5);
  541. -- FORMS: time
  542. 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
  543. ('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');
  544. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  545. ('bx_tasks_time_add', 'bx_tasks', 'bx_tasks_time', '_bx_tasks_form_display_time_add', 0),
  546. ('bx_tasks_time_edit', 'bx_tasks', 'bx_tasks_time', '_bx_tasks_form_display_time_edit', 0);
  547. 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
  548. ('bx_tasks_time', 'bx_tasks', 'sys', '', '', 0, 'hidden', '_bx_tasks_form_time_input_sys_sys', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  549. ('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),
  550. ('bx_tasks_time', 'bx_tasks', 'action', '', '', 0, 'hidden', '_bx_tasks_form_time_input_sys_action', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  551. ('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),
  552. ('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),
  553. ('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),
  554. ('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),
  555. ('bx_tasks_time', 'bx_tasks', 'value_date', '', '', 0, 'datepicker', '_bx_tasks_form_time_input_sys_value_date', '_bx_tasks_form_time_input_value_date', '_bx_tasks_form_time_input_value_date_inf', 0, 0, 0, '', '', '', '', '', '', 'DateUtc', '', 1, 0),
  556. ('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),
  557. ('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),
  558. ('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),
  559. ('bx_tasks_time', 'bx_tasks', 'controls', '', 'submit,cancel', 0, 'input_set', '_bx_tasks_form_time_input_sys_controls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
  560. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  561. ('bx_tasks_time_add', 'sys', 2147483647, 1, 1),
  562. ('bx_tasks_time_add', 'object_id', 2147483647, 1, 2),
  563. ('bx_tasks_time_add', 'action', 2147483647, 1, 3),
  564. ('bx_tasks_time_add', 'value', 2147483647, 1, 4),
  565. ('bx_tasks_time_add', 'value_h', 2147483647, 1, 5),
  566. ('bx_tasks_time_add', 'value_div', 2147483647, 1, 6),
  567. ('bx_tasks_time_add', 'value_m', 2147483647, 1, 7),
  568. ('bx_tasks_time_add', 'value_date', 2147483647, 1, 8),
  569. ('bx_tasks_time_add', 'text', 2147483647, 1, 9),
  570. ('bx_tasks_time_add', 'controls', 2147483647, 1, 10),
  571. ('bx_tasks_time_add', 'submit', 2147483647, 1, 11),
  572. ('bx_tasks_time_add', 'cancel', 2147483647, 1, 12),
  573. ('bx_tasks_time_edit', 'value', 2147483647, 1, 1),
  574. ('bx_tasks_time_edit', 'value_h', 2147483647, 1, 2),
  575. ('bx_tasks_time_edit', 'value_div', 2147483647, 1, 3),
  576. ('bx_tasks_time_edit', 'value_m', 2147483647, 1, 4),
  577. ('bx_tasks_time_edit', 'value_date', 2147483647, 1, 5),
  578. ('bx_tasks_time_edit', 'text', 2147483647, 1, 6),
  579. ('bx_tasks_time_edit', 'controls', 2147483647, 1, 7),
  580. ('bx_tasks_time_edit', 'submit', 2147483647, 1, 8),
  581. ('bx_tasks_time_edit', 'cancel', 2147483647, 1, 9);
  582. -- PRE-VALUES
  583. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  584. ('bx_tasks_types', '_bx_tasks_pre_lists_types', 'bx_tasks', '0');
  585. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  586. ('bx_tasks_types', '', 0, '_sys_please_select', ''),
  587. ('bx_tasks_types', '1', 1, '_bx_tasks_type_1', ''),
  588. ('bx_tasks_types', '2', 2, '_bx_tasks_type_2', ''),
  589. ('bx_tasks_types', '3', 3, '_bx_tasks_type_3', '');
  590. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  591. ('bx_tasks_priorities', '_bx_tasks_pre_lists_priorities', 'bx_tasks', '0');
  592. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  593. ('bx_tasks_priorities', '', 0, '_sys_please_select', ''),
  594. ('bx_tasks_priorities', '1', 1, '_bx_tasks_priority_1', ''),
  595. ('bx_tasks_priorities', '2', 2, '_bx_tasks_priority_2', ''),
  596. ('bx_tasks_priorities', '3', 3, '_bx_tasks_priority_3', ''),
  597. ('bx_tasks_priorities', '4', 4, '_bx_tasks_priority_4', ''),
  598. ('bx_tasks_priorities', '5', 5, '_bx_tasks_priority_5', '');
  599. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  600. ('bx_tasks_estimates', '_bx_tasks_pre_lists_estimates', 'bx_tasks', '0');
  601. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  602. ('bx_tasks_estimates', '', 0, '_sys_please_select', ''),
  603. ('bx_tasks_estimates', '2', 1, '_bx_tasks_estimate_2', ''),
  604. ('bx_tasks_estimates', '4', 1, '_bx_tasks_estimate_4', ''),
  605. ('bx_tasks_estimates', '8', 1, '_bx_tasks_estimate_8', ''),
  606. ('bx_tasks_estimates', '16', 1, '_bx_tasks_estimate_16', ''),
  607. ('bx_tasks_estimates', '32', 1, '_bx_tasks_estimate_32', ''),
  608. ('bx_tasks_estimates', '64', 1, '_bx_tasks_estimate_64', '');
  609. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  610. ('bx_tasks_states', '_bx_tasks_pre_lists_states', 'bx_tasks', '0');
  611. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  612. ('bx_tasks_states', '', 0, '_sys_please_select', ''),
  613. ('bx_tasks_states', '1', 1, '_bx_tasks_state_1', ''),
  614. ('bx_tasks_states', '2', 2, '_bx_tasks_state_2', ''),
  615. ('bx_tasks_states', '3', 3, '_bx_tasks_state_3', ''),
  616. ('bx_tasks_states', '4', 4, '_bx_tasks_state_4', ''),
  617. ('bx_tasks_states', '5', 5, '_bx_tasks_state_5', ''),
  618. ('bx_tasks_states', '6', 6, '_bx_tasks_state_6', ''),
  619. ('bx_tasks_states', '7', 7, '_bx_tasks_state_7', '');
  620. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  621. ('bx_tasks_cats', '_bx_tasks_pre_lists_cats', 'bx_tasks', '0');
  622. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  623. ('bx_tasks_cats', '', 0, '_sys_please_select', ''),
  624. ('bx_tasks_cats', '1', 1, '_bx_tasks_cat_Animals_Pets', ''),
  625. ('bx_tasks_cats', '2', 2, '_bx_tasks_cat_Architecture', ''),
  626. ('bx_tasks_cats', '3', 3, '_bx_tasks_cat_Art', ''),
  627. ('bx_tasks_cats', '4', 4, '_bx_tasks_cat_Cars_Motorcycles', ''),
  628. ('bx_tasks_cats', '5', 5, '_bx_tasks_cat_Celebrities', ''),
  629. ('bx_tasks_cats', '6', 6, '_bx_tasks_cat_Design', ''),
  630. ('bx_tasks_cats', '7', 7, '_bx_tasks_cat_DIY_Crafts', ''),
  631. ('bx_tasks_cats', '8', 8, '_bx_tasks_cat_Education', ''),
  632. ('bx_tasks_cats', '9', 9, '_bx_tasks_cat_Film_Music_Books', ''),
  633. ('bx_tasks_cats', '10', 10, '_bx_tasks_cat_Food_Drink', ''),
  634. ('bx_tasks_cats', '11', 11, '_bx_tasks_cat_Gardening', ''),
  635. ('bx_tasks_cats', '12', 12, '_bx_tasks_cat_Geek', ''),
  636. ('bx_tasks_cats', '13', 13, '_bx_tasks_cat_Hair_Beauty', ''),
  637. ('bx_tasks_cats', '14', 14, '_bx_tasks_cat_Health_Fitness', ''),
  638. ('bx_tasks_cats', '15', 15, '_bx_tasks_cat_History', ''),
  639. ('bx_tasks_cats', '16', 16, '_bx_tasks_cat_Holidays_Events', ''),
  640. ('bx_tasks_cats', '17', 17, '_bx_tasks_cat_Home_Decor', ''),
  641. ('bx_tasks_cats', '18', 18, '_bx_tasks_cat_Humor', ''),
  642. ('bx_tasks_cats', '19', 19, '_bx_tasks_cat_Illustrations_Posters', ''),
  643. ('bx_tasks_cats', '20', 20, '_bx_tasks_cat_Kids_Parenting', ''),
  644. ('bx_tasks_cats', '21', 21, '_bx_tasks_cat_Mens_Fashion', ''),
  645. ('bx_tasks_cats', '22', 22, '_bx_tasks_cat_Outdoors', ''),
  646. ('bx_tasks_cats', '23', 23, '_bx_tasks_cat_Photography', ''),
  647. ('bx_tasks_cats', '24', 24, '_bx_tasks_cat_Products', ''),
  648. ('bx_tasks_cats', '25', 25, '_bx_tasks_cat_Quotes', ''),
  649. ('bx_tasks_cats', '26', 26, '_bx_tasks_cat_Science_Nature', ''),
  650. ('bx_tasks_cats', '27', 27, '_bx_tasks_cat_Sports', ''),
  651. ('bx_tasks_cats', '28', 28, '_bx_tasks_cat_Tattoos', ''),
  652. ('bx_tasks_cats', '29', 29, '_bx_tasks_cat_Technology', ''),
  653. ('bx_tasks_cats', '30', 30, '_bx_tasks_cat_Travel', ''),
  654. ('bx_tasks_cats', '31', 31, '_bx_tasks_cat_Weddings', ''),
  655. ('bx_tasks_cats', '32', 32, '_bx_tasks_cat_Womens_Fashion', '');
  656. -- COMMENTS
  657. 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
  658. ('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'),
  659. ('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', '');
  660. -- VOTES
  661. INSERT INTO `sys_objects_vote` (`Name`, `Module`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  662. ('bx_tasks', 'bx_tasks', 'bx_tasks_votes', 'bx_tasks_votes_track', '604800', '1', '1', '0', '1', 'bx_tasks_tasks', 'id', 'author', 'rate', 'votes', '', ''),
  663. ('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', '');
  664. -- SCORES
  665. 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
  666. ('bx_tasks', 'bx_tasks', 'bx_tasks_scores', 'bx_tasks_scores_track', '604800', '0', 'bx_tasks_tasks', 'id', 'author', 'score', 'sc_up', 'sc_down', '', '');
  667. -- REPORTS
  668. 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
  669. ('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', '', ''),
  670. ('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');
  671. -- VIEWS
  672. 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
  673. ('bx_tasks', 'bx_tasks', 'bx_tasks_views_track', '86400', '1', 'bx_tasks_tasks', 'id', 'author', 'views', '', '');
  674. -- FAFORITES
  675. 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
  676. ('bx_tasks', 'bx_tasks_favorites_track', '1', '1', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_tasks', 'id', 'author', 'favorites', '', '');
  677. -- FEATURED
  678. 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
  679. ('bx_tasks', 'bx_tasks', '1', '1', 'page.php?i=view-task&id={object_id}', 'bx_tasks_tasks', 'id', 'author', 'featured', '', '');
  680. -- CONTENT INFO
  681. INSERT INTO `sys_objects_content_info` (`name`, `title`, `alert_unit`, `alert_action_add`, `alert_action_update`, `alert_action_delete`, `class_name`, `class_file`) VALUES
  682. ('bx_tasks', '_bx_tasks', 'bx_tasks', 'added', 'edited', 'deleted', '', ''),
  683. ('bx_tasks_cmts', '_bx_tasks_cmts', 'bx_tasks', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
  684. -- SEARCH EXTENDED
  685. INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
  686. ('bx_tasks', 'bx_tasks', 'bx_tasks', '_bx_tasks_search_extended', 1, '', ''),
  687. ('bx_tasks_cmts', 'bx_tasks_cmts', 'bx_tasks', '_bx_tasks_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
  688. -- STUDIO: page & widget
  689. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  690. (3, 'bx_tasks', '_bx_tasks', '_bx_tasks', 'bx_tasks@modules/boonex/tasks/|std-icon.svg');
  691. SET @iPageId = LAST_INSERT_ID();
  692. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  693. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  694. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  695. (@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";}');
  696. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  697. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));