summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.3/postgresql/patch/services.sql
diff options
context:
space:
mode:
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch/services.sql')
-rw-r--r--upgrades/dbpatches/1.3/postgresql/patch/services.sql14
1 files changed, 7 insertions, 7 deletions
diff --git a/upgrades/dbpatches/1.3/postgresql/patch/services.sql b/upgrades/dbpatches/1.3/postgresql/patch/services.sql
index d6578969..efafc4e5 100644
--- a/upgrades/dbpatches/1.3/postgresql/patch/services.sql
+++ b/upgrades/dbpatches/1.3/postgresql/patch/services.sql
@@ -1,15 +1,15 @@
CREATE TABLE services_tmp (
- serviceid bigint unsigned DEFAULT '0' NOT NULL,
+ serviceid bigint DEFAULT '0' NOT NULL,
name varchar(128) DEFAULT '' NOT NULL,
status integer DEFAULT '0' NOT NULL,
- algorithm integer DEFAULT '0' NOT NULL,
- triggerid bigint unsigned ,
+ algorithm integer DEFAULT '0' NOT NULL,
+ triggerid bigint ,
showsla integer DEFAULT '0' NOT NULL,
- goodsla double(5,2) DEFAULT '99.9' NOT NULL,
- sortorder integer DEFAULT '0' NOT NULL,
+ goodsla numeric(5,2) DEFAULT '99.9' NOT NULL,
+ sortorder integer DEFAULT '0' NOT NULL,
PRIMARY KEY (serviceid)
-) ENGINE=InnoDB;
+);
insert into services_tmp select * from services;
drop table services;
-alter table services_tmp rename services;
+alter table services_tmp rename to services;