mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
mod_storage_sql: Keep prosodyarchive_index unique constraint on non-MySQL DBs
This commit is contained in:
parent
0ac9ea3a74
commit
1faf1773a3
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ local function create_table(engine) -- luacheck: ignore 431/engine
|
|||
Column { name="with", type="TEXT", nullable=false }; -- related id
|
||||
Column { name="type", type="TEXT", nullable=false };
|
||||
Column { name="value", type="MEDIUMTEXT", nullable=false };
|
||||
Index { name="prosodyarchive_index", "host", "user", "store", "key" };
|
||||
Index { name="prosodyarchive_index", unique = engine.params.driver ~= "MySQL", "host", "user", "store", "key" };
|
||||
Index { name="prosodyarchive_with_when", "host", "user", "store", "with", "when" };
|
||||
Index { name="prosodyarchive_when", "host", "user", "store", "when" };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue