diff options
author | onefang | 2020-07-31 01:43:03 +1000 |
---|---|---|
committer | onefang | 2020-07-31 01:43:03 +1000 |
commit | 78c5071a8f664191c7c837279f7445e280daccf9 (patch) | |
tree | 7ed95d289b389a1ec659e6281215a584cc3713fd /OpenSim/Data/Migration.cs | |
parent | Remove useless .csproj files. (diff) | |
download | opensim-SC-78c5071a8f664191c7c837279f7445e280daccf9.zip opensim-SC-78c5071a8f664191c7c837279f7445e280daccf9.tar.gz opensim-SC-78c5071a8f664191c7c837279f7445e280daccf9.tar.bz2 opensim-SC-78c5071a8f664191c7c837279f7445e280daccf9.tar.xz |
Various database fixups.
InnoDB -> MyISAM
utf8
if not exists
white space
Diffstat (limited to 'OpenSim/Data/Migration.cs')
-rw-r--r-- | OpenSim/Data/Migration.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs index e54bf55..661f9c1 100644 --- a/OpenSim/Data/Migration.cs +++ b/OpenSim/Data/Migration.cs | |||
@@ -123,7 +123,7 @@ namespace OpenSim.Data | |||
123 | if (ver <= 0) // -1 = no table, 0 = no version record | 123 | if (ver <= 0) // -1 = no table, 0 = no version record |
124 | { | 124 | { |
125 | if (ver < 0) | 125 | if (ver < 0) |
126 | ExecuteScript("create table migrations(name varchar(100), version int)"); | 126 | ExecuteScript("create table if not exists migrations(name varchar(100), version int) ENGINE=MyISAM DEFAULT CHARSET=utf8"); |
127 | InsertVersion("migrations", 1); | 127 | InsertVersion("migrations", 1); |
128 | } | 128 | } |
129 | } | 129 | } |