X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mysql.sql;h=40065f062d22f118c371681df925b0c83006ac4f;hb=2a2bb2cc8f9551d1e93de2d34e27b21201f9e44a;hp=0cd7326292297c36c4e074db5316a6df0ca909c7;hpb=c75f863a12ab28d8f828c0cc367b581b396ee951;p=timetracker.git diff --git a/mysql.sql b/mysql.sql index 0cd73262..40065f06 100644 --- a/mysql.sql +++ b/mysql.sql @@ -560,6 +560,41 @@ CREATE TABLE `tt_files` ( ); +# +# Structure for table tt_work_currencies. +# This table keeps currencies supported by remote work plugin. +# +CREATE TABLE `tt_work_currencies` ( + `id` int(10) unsigned NOT NULL, # currency id + `name` varchar(10) NOT NULL, # currency name (USD, CAD, etc.) + PRIMARY KEY (`id`) +); + +# Create an index that guarantees unique work currencies. +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. WORK IN PROGRESS! +# This table keeps work categories supported by remote work plugin. +# +# CREATE TABLE `tt_work_categories` ( +# `id` int(10) unsigned NOT NULL, # category id +# `parent_id` int(10) unsigned default NULL, # parent category id +# `level` tinyint(4) default 0, # sub-category level +# +# Localized name fields below for all supported languages? +# `name_en` varhar(64) NOT NULL, # English. +# `name_de` varhar(64) default NULL, # German. +# `name_fr` varhar(64) default NULL, # French. +# `name_ru` varhar(64) default NULL, # Russian. +# +# PRIMARY KEY (`id`) +# ); + + # # Structure for table tt_site_config. This table stores configuration data # for Time Tracker site as a whole. @@ -573,4 +608,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.0', now()); # TODO: change when structure changes. +INSERT INTO `tt_site_config` (`param_name`, `param_value`, `created`) VALUES ('version_db', '1.19.2', now()); # TODO: change when structure changes.