diff options
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch/sysmaps.sql')
-rw-r--r-- | upgrades/dbpatches/1.3/postgresql/patch/sysmaps.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/upgrades/dbpatches/1.3/postgresql/patch/sysmaps.sql b/upgrades/dbpatches/1.3/postgresql/patch/sysmaps.sql new file mode 100644 index 00000000..b357e8e8 --- /dev/null +++ b/upgrades/dbpatches/1.3/postgresql/patch/sysmaps.sql @@ -0,0 +1,15 @@ +CREATE TABLE sysmaps_tmp ( + sysmapid bigint unsigned DEFAULT '0' NOT NULL, + name varchar(128) DEFAULT '' NOT NULL, + width integer DEFAULT '0' NOT NULL, + height integer DEFAULT '0' NOT NULL, + backgroundid bigint unsigned DEFAULT '0' NOT NULL, + label_type integer DEFAULT '0' NOT NULL, + label_location integer DEFAULT '0' NOT NULL, + PRIMARY KEY (sysmapid) +) ENGINE=InnoDB; +CREATE INDEX sysmaps_1 on sysmaps_tmp (name); + +insert into sysmaps_tmp select * from sysmaps; +drop table sysmaps; +alter table sysmaps_tmp rename sysmaps; |