sql/cost_centeres.sql
authorbenny <benny@roojs.com>
Wed, 11 Jul 2018 03:16:36 +0000 (11:16 +0800)
committerbenny <benny@roojs.com>
Wed, 11 Jul 2018 03:16:36 +0000 (11:16 +0800)
sql/cost_centeres.sql [new file with mode: 0644]

diff --git a/sql/cost_centeres.sql b/sql/cost_centeres.sql
new file mode 100644 (file)
index 0000000..89da40d
--- /dev/null
@@ -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;
+
+
+
+