Delete a bunch of cruft that has gone unmaintained for too long.
Fix warps to have an auto-increment primary key column, and unique on name/WorldID Same for regions. Changed SqliteTableCreator to do proper unique syntax.
This commit is contained in:
parent
34b268f1db
commit
1c7fe908b6
19 changed files with 15 additions and 2321 deletions
|
|
@ -40,10 +40,11 @@ namespace TShockAPI.DB
|
|||
database = db;
|
||||
|
||||
var table = new SqlTable("Warps",
|
||||
new SqlColumn("WarpName", MySqlDbType.VarChar, 50) {Primary = true},
|
||||
new SqlColumn("Id", MySqlDbType.Int32){Primary = true, AutoIncrement = true},
|
||||
new SqlColumn("WarpName", MySqlDbType.VarChar, 50) {Unique = true},
|
||||
new SqlColumn("X", MySqlDbType.Int32),
|
||||
new SqlColumn("Y", MySqlDbType.Int32),
|
||||
new SqlColumn("WorldID", MySqlDbType.Text),
|
||||
new SqlColumn("WorldID", MySqlDbType.Text) {Unique = true},
|
||||
new SqlColumn("Private", MySqlDbType.Text)
|
||||
);
|
||||
var creator = new SqlTableCreator(db,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue