Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 8480:3d3706147174
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 22 Dec 2017 01:02:05 +0100 |
parent | 8470:81f894d08b17 |
parent | 8478:384658c7a26a |
child | 8537:d7f31badd359 |
comparison
equal
deleted
inserted
replaced
8473:f024cb5acc25 | 8480:3d3706147174 |
---|---|
478 Column { name="when", type="INTEGER", nullable=false }; -- timestamp | 478 Column { name="when", type="INTEGER", nullable=false }; -- timestamp |
479 Column { name="with", type="TEXT", nullable=false }; -- related id | 479 Column { name="with", type="TEXT", nullable=false }; -- related id |
480 Column { name="type", type="TEXT", nullable=false }; | 480 Column { name="type", type="TEXT", nullable=false }; |
481 Column { name="value", type="MEDIUMTEXT", nullable=false }; | 481 Column { name="value", type="MEDIUMTEXT", nullable=false }; |
482 Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; | 482 Index { name="prosodyarchive_index", unique = true, "host", "user", "store", "key" }; |
483 Index { name="prosodyarchive_with", "host", "user", "store", "with" }; | 483 Index { name="prosodyarchive_with_when", "host", "user", "store", "with", "when" }; |
484 Index { name="prosodyarchive_when", "host", "user", "store", "when" }; | 484 Index { name="prosodyarchive_when", "host", "user", "store", "when" }; |
485 }; | 485 }; |
486 engine:transaction(function() | 486 engine:transaction(function() |
487 ProsodyArchiveTable:create(engine); | 487 ProsodyArchiveTable:create(engine); |
488 end); | 488 end); |