37 lines
1.1 KiB
MySQL
37 lines
1.1 KiB
MySQL
|
alter table "user_preference" add column language varchar(5);
|
||
|
alter table "user_default" add column language varchar(5);
|
||
|
|
||
|
--Make MySQL use Double for numeric columns;
|
||
|
CREATE TABLE currency (
|
||
|
id serial NOT NULL,
|
||
|
company_id integer NOT NULL,
|
||
|
status_id integer NOT NULL,
|
||
|
name character varying NOT NULL,
|
||
|
iso_code varchar(5) NOT NULL,
|
||
|
conversion_rate numeric(18,10),
|
||
|
auto_update smallint,
|
||
|
actual_rate numeric(18,10),
|
||
|
actual_rate_updated_date integer,
|
||
|
rate_modify_percent numeric(18,10),
|
||
|
is_base smallint DEFAULT 0 NOT NULL,
|
||
|
is_default smallint DEFAULT 0 NOT NULL,
|
||
|
created_date integer,
|
||
|
created_by integer,
|
||
|
updated_date integer,
|
||
|
updated_by integer,
|
||
|
deleted_date integer,
|
||
|
deleted_by integer,
|
||
|
deleted smallint DEFAULT 0 NOT NULL
|
||
|
);
|
||
|
|
||
|
alter table "users" add column currency_id integer;
|
||
|
alter table "user_default" add column currency_id integer;
|
||
|
alter table "pay_stub" add column currency_id integer;
|
||
|
alter table "pay_stub" add column currency_rate numeric(18,10);
|
||
|
|
||
|
CREATE TABLE policy_group_accrual_policy (
|
||
|
id serial NOT NULL,
|
||
|
policy_group_id integer DEFAULT 0 NOT NULL,
|
||
|
accrual_policy_id integer DEFAULT 0 NOT NULL
|
||
|
);
|