X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mysql.sql;h=bc79445e9bc97a4d0c60587159464160cc9b644b;hb=1078c4da84d79f93ef7f8bbffc5f0c8cb2a1a274;hp=56c217a3a6d0c964b5d2eeb05c60e689d3703374;hpb=4a23c8efa5cd0af46cef4a602b5897f9b8e14636;p=timetracker.git diff --git a/mysql.sql b/mysql.sql index 56c217a3..bc79445e 100644 --- a/mysql.sql +++ b/mysql.sql @@ -576,6 +576,26 @@ create unique index currency_idx on tt_work_currencies(`name`); INSERT INTO `tt_work_currencies` (`id`, `name`) VALUES ('1', 'USD'), ('2', 'CAD'), ('3', 'AUD'), ('4', 'EUR'), ('5', 'NZD'); +# +# Structure for table tt_work_categories. +# This table keeps work categories supported by remote work plugin. +# +CREATE TABLE `tt_work_categories` ( + `id` int(10) unsigned NOT NULL, # Category id. + `parents` text default NULL, # Comma-separated list of parent ids associated with this category. + `name` varchar(64) NOT NULL, # English category name. + `name_localized` text default NULL, # Comma-separated list of localized category names in other languages. + # Example: es:Codificación,ru:Кодирование. + PRIMARY KEY (`id`) +); + +# Insert some default categories. Table content to be updated at run time, though. +INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('1', NULL, 'Coding', 'es:Codificación,ru:Кодирование'); +INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('2', NULL, 'Other', 'es:Otra,ru:Другое'); +INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('3', '1', 'PHP', NULL); +INSERT INTO `tt_work_categories` (`id`, `parents`, `name`, `name_localized`) VALUES ('4', '1', 'C/C++', NULL); + + # # Structure for table tt_site_config. This table stores configuration data # for Time Tracker site as a whole. @@ -589,4 +609,4 @@ CREATE TABLE `tt_site_config` ( PRIMARY KEY (`param_name`) ); -INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.19.2', now()); # TODO: change when structure changes. +INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.19.3', now()); # TODO: change when structure changes.