diff options
author | David Walter Seikel | 2013-09-10 02:49:14 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-09-10 02:49:14 +1000 |
commit | 6f91a29e6f64693f2c0efeb99661965df2b04b5f (patch) | |
tree | 3671f6d505fa7e4c34de885954bf8bc107ee2cb2 | |
parent | Fix local lures. (diff) | |
download | opensim-SC-6f91a29e6f64693f2c0efeb99661965df2b04b5f.zip opensim-SC-6f91a29e6f64693f2c0efeb99661965df2b04b5f.tar.gz opensim-SC-6f91a29e6f64693f2c0efeb99661965df2b04b5f.tar.bz2 opensim-SC-6f91a29e6f64693f2c0efeb99661965df2b04b5f.tar.xz |
Only recreate tables if they don't exist.
Diffstat (limited to '')
-rw-r--r-- | sql/ossearch.sql | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sql/ossearch.sql b/sql/ossearch.sql index a1ef08f..2075cbf 100644 --- a/sql/ossearch.sql +++ b/sql/ossearch.sql | |||
@@ -16,7 +16,7 @@ | |||
16 | -- Tabel structuur voor tabel `allparcels` | 16 | -- Tabel structuur voor tabel `allparcels` |
17 | -- | 17 | -- |
18 | 18 | ||
19 | CREATE TABLE `allparcels` ( | 19 | CREATE TABLE IF NOT EXISTS `allparcels` ( |
20 | `regionUUID` varchar(255) NOT NULL, | 20 | `regionUUID` varchar(255) NOT NULL, |
21 | `parcelname` varchar(255) NOT NULL, | 21 | `parcelname` varchar(255) NOT NULL, |
22 | `ownerUUID` char(36) NOT NULL default '00000000-0000-0000-0000-000000000000', | 22 | `ownerUUID` char(36) NOT NULL default '00000000-0000-0000-0000-000000000000', |
@@ -35,7 +35,7 @@ CREATE TABLE `allparcels` ( | |||
35 | -- Tabel structuur voor tabel `classifieds` | 35 | -- Tabel structuur voor tabel `classifieds` |
36 | -- | 36 | -- |
37 | 37 | ||
38 | CREATE TABLE `classifieds` ( | 38 | CREATE TABLE IF NOT EXISTS `classifieds` ( |
39 | `classifieduuid` char(36) NOT NULL, | 39 | `classifieduuid` char(36) NOT NULL, |
40 | `creatoruuid` char(36) NOT NULL, | 40 | `creatoruuid` char(36) NOT NULL, |
41 | `creationdate` int(20) NOT NULL, | 41 | `creationdate` int(20) NOT NULL, |
@@ -52,7 +52,7 @@ CREATE TABLE `classifieds` ( | |||
52 | `classifiedflags` int(8) NOT NULL, | 52 | `classifiedflags` int(8) NOT NULL, |
53 | `priceforlisting` int(5) NOT NULL, | 53 | `priceforlisting` int(5) NOT NULL, |
54 | PRIMARY KEY (`classifieduuid`) | 54 | PRIMARY KEY (`classifieduuid`) |
55 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | 55 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
56 | 56 | ||
57 | -- -------------------------------------------------------- | 57 | -- -------------------------------------------------------- |
58 | 58 | ||
@@ -60,7 +60,7 @@ CREATE TABLE `classifieds` ( | |||
60 | -- Tabel structuur voor tabel `events` | 60 | -- Tabel structuur voor tabel `events` |
61 | -- | 61 | -- |
62 | 62 | ||
63 | CREATE TABLE `events` ( | 63 | CREATE TABLE IF NOT EXISTS `events` ( |
64 | `owneruuid` char(40) NOT NULL, | 64 | `owneruuid` char(40) NOT NULL, |
65 | `name` varchar(255) NOT NULL, | 65 | `name` varchar(255) NOT NULL, |
66 | `eventid` int(11) NOT NULL auto_increment, | 66 | `eventid` int(11) NOT NULL auto_increment, |
@@ -75,7 +75,7 @@ CREATE TABLE `events` ( | |||
75 | `globalPos` varchar(255) NOT NULL, | 75 | `globalPos` varchar(255) NOT NULL, |
76 | `eventflags` int(1) NOT NULL, | 76 | `eventflags` int(1) NOT NULL, |
77 | PRIMARY KEY (`eventid`) | 77 | PRIMARY KEY (`eventid`) |
78 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | 78 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; |
79 | 79 | ||
80 | -- -------------------------------------------------------- | 80 | -- -------------------------------------------------------- |
81 | 81 | ||
@@ -83,7 +83,7 @@ CREATE TABLE `events` ( | |||
83 | -- Tabel structuur voor tabel `hostsregister` | 83 | -- Tabel structuur voor tabel `hostsregister` |
84 | -- | 84 | -- |
85 | 85 | ||
86 | CREATE TABLE `hostsregister` ( | 86 | CREATE TABLE IF NOT EXISTS `hostsregister` ( |
87 | `host` varchar(255) NOT NULL, | 87 | `host` varchar(255) NOT NULL, |
88 | `port` int(5) NOT NULL, | 88 | `port` int(5) NOT NULL, |
89 | `register` int(10) NOT NULL, | 89 | `register` int(10) NOT NULL, |
@@ -99,7 +99,7 @@ CREATE TABLE `hostsregister` ( | |||
99 | -- Tabel structuur voor tabel `objects` | 99 | -- Tabel structuur voor tabel `objects` |
100 | -- | 100 | -- |
101 | 101 | ||
102 | CREATE TABLE `objects` ( | 102 | CREATE TABLE IF NOT EXISTS `objects` ( |
103 | `objectuuid` varchar(255) NOT NULL, | 103 | `objectuuid` varchar(255) NOT NULL, |
104 | `parceluuid` varchar(255) NOT NULL, | 104 | `parceluuid` varchar(255) NOT NULL, |
105 | `location` varchar(255) NOT NULL, | 105 | `location` varchar(255) NOT NULL, |
@@ -115,7 +115,7 @@ CREATE TABLE `objects` ( | |||
115 | -- Tabel structuur voor tabel `parcels` | 115 | -- Tabel structuur voor tabel `parcels` |
116 | -- | 116 | -- |
117 | 117 | ||
118 | CREATE TABLE `parcels` ( | 118 | CREATE TABLE IF NOT EXISTS `parcels` ( |
119 | `regionUUID` varchar(255) NOT NULL, | 119 | `regionUUID` varchar(255) NOT NULL, |
120 | `parcelname` varchar(255) NOT NULL, | 120 | `parcelname` varchar(255) NOT NULL, |
121 | `parcelUUID` varchar(255) NOT NULL, | 121 | `parcelUUID` varchar(255) NOT NULL, |
@@ -141,7 +141,7 @@ CREATE TABLE `parcels` ( | |||
141 | -- Tabel structuur voor tabel `parcelsales` | 141 | -- Tabel structuur voor tabel `parcelsales` |
142 | -- | 142 | -- |
143 | 143 | ||
144 | CREATE TABLE `parcelsales` ( | 144 | CREATE TABLE IF NOT EXISTS `parcelsales` ( |
145 | `regionUUID` varchar(255) NOT NULL, | 145 | `regionUUID` varchar(255) NOT NULL, |
146 | `parcelname` varchar(255) NOT NULL, | 146 | `parcelname` varchar(255) NOT NULL, |
147 | `parcelUUID` varchar(255) NOT NULL, | 147 | `parcelUUID` varchar(255) NOT NULL, |
@@ -161,7 +161,7 @@ CREATE TABLE `parcelsales` ( | |||
161 | -- Tabel structuur voor tabel `popularplaces` | 161 | -- Tabel structuur voor tabel `popularplaces` |
162 | -- | 162 | -- |
163 | 163 | ||
164 | CREATE TABLE `popularplaces` ( | 164 | CREATE TABLE IF NOT EXISTS `popularplaces` ( |
165 | `parcelUUID` char(36) NOT NULL, | 165 | `parcelUUID` char(36) NOT NULL, |
166 | `name` varchar(255) NOT NULL, | 166 | `name` varchar(255) NOT NULL, |
167 | `dwell` float NOT NULL, | 167 | `dwell` float NOT NULL, |
@@ -176,7 +176,7 @@ CREATE TABLE `popularplaces` ( | |||
176 | -- Tabel structuur voor tabel `regions` | 176 | -- Tabel structuur voor tabel `regions` |
177 | -- | 177 | -- |
178 | 178 | ||
179 | CREATE TABLE `osregions` ( | 179 | CREATE TABLE IF NOT EXISTS `osregions` ( |
180 | `regionname` varchar(255) NOT NULL, | 180 | `regionname` varchar(255) NOT NULL, |
181 | `regionuuid` varchar(255) NOT NULL, | 181 | `regionuuid` varchar(255) NOT NULL, |
182 | `regionhandle` varchar(255) NOT NULL, | 182 | `regionhandle` varchar(255) NOT NULL, |