X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fproject_bob_attributes.sql;h=ef2224c3b456b9a6c491c7993d03805be0456efe;hb=ff159a4d47b9a2d10744dcfc23da2c63605c8a32;hp=cf7a2f357788003e2b6daa1890fbe18d901e6678;hpb=640adf5897913667b2b50148cc651bacafb0481e;p=kivitendo-erp.git diff --git a/sql/Pg-upgrade2/project_bob_attributes.sql b/sql/Pg-upgrade2/project_bob_attributes.sql index cf7a2f357..ef2224c3b 100644 --- a/sql/Pg-upgrade2/project_bob_attributes.sql +++ b/sql/Pg-upgrade2/project_bob_attributes.sql @@ -5,12 +5,11 @@ -- changes over bob: -- no scon/support_contract values here -- no include or expclude flags for workload --- statuses renamed to status (we dont use rails weird plurals) -- created_at/updated_at renamed to itime/mtime, -- varchars retyped to text -- hours (numeric) changed to minutes (integer) since the code already calculates in minutes -- note: flags changing the behaviour of hours are still called so and not minutes --- no refcounts. we use adhoc counts to decide wether delete is possible or not +-- no refcounts. we use adhoc counts to decide whether delete is possible or not -- no hour_approval -- nothing relevant to notifications @@ -22,7 +21,7 @@ CREATE TABLE project_status ( name TEXT NOT NULL, description TEXT NOT NULL, position INTEGER NOT NULL, - itime TIMESTAMP DEFAULT 'now()', + itime TIMESTAMP DEFAULT now(), mtime TIMESTAMP ); @@ -48,7 +47,7 @@ CREATE TABLE project_phases ( budget_cost NUMERIC (15,5) NOT NULL DEFAULT 0, general_minutes INTEGER NOT NULL DEFAULT 0, general_cost_per_hour NUMERIC (15,5) NOT NULL DEFAULT 0, - itime TIMESTAMP DEFAULT 'now()', + itime TIMESTAMP DEFAULT now(), mtime TIMESTAMP ); @@ -57,7 +56,7 @@ CREATE TABLE project_roles ( name TEXT NOT NULL, description TEXT NOT NULL, position INTEGER NOT NULL, - itime TIMESTAMP DEFAULT 'now()', + itime TIMESTAMP DEFAULT now(), mtime TIMESTAMP ); @@ -68,7 +67,7 @@ CREATE TABLE project_participants ( project_role_id INTEGER NOT NULL REFERENCES project_roles(id), minutes INTEGER NOT NULL DEFAULT 0, cost_per_hour NUMERIC (15,5), - itime TIMESTAMP DEFAULT 'now()', + itime TIMESTAMP DEFAULT now(), mtime TIMESTAMP ); @@ -79,7 +78,7 @@ CREATE TABLE project_phase_participants ( project_role_id INTEGER NOT NULL REFERENCES project_roles(id), minutes INTEGER NOT NULL DEFAULT 0, cost_per_hour NUMERIC (15,5), - itime TIMESTAMP DEFAULT 'now()', + itime TIMESTAMP DEFAULT now(), mtime TIMESTAMP );