From 4b05c07261de8789bb569a4ecb83a5c8d318ea13 Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 13 Jul 2018 15:00:43 +0800 Subject: [PATCH] sql/cost_centeres_1.sql --- sql/cost_centeres_1.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sql/cost_centeres_1.sql diff --git a/sql/cost_centeres_1.sql b/sql/cost_centeres_1.sql new file mode 100644 index 00000000..89da40d3 --- /dev/null +++ b/sql/cost_centeres_1.sql @@ -0,0 +1,13 @@ +CREATE TABLE cost_centers ( + id INT(11) NOT NULL AUTO_INCREMENT , + short_name VARCHAR(8) NULL, + name VARCHAR(32) NULL, + PRIMARY KEY (id) +); + +ALTER TABLE cost_centers CHANGE COLUMN is_active is_active INT(2) NOT NULL DEFAULT 1; +ALTER TABLE cost_centers ADD COLUMN is_active INT(2) NOT NULL DEFAULT 1; + + + + -- 2.39.2