Comparison

plugins/mod_storage_sql.lua @ 8410:54ff1f91e4db

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 23:16:16 +0100
parent 8395:fbb9a1c2120e
parent 8409:e98b4352d7df
child 8470:81f894d08b17
comparison
equal deleted inserted replaced
8408:b751bee6a829 8410:54ff1f91e4db
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" };
484 Index { name="prosodyarchive_when", "host", "user", "store", "when" };
483 }; 485 };
484 engine:transaction(function() 486 engine:transaction(function()
485 ProsodyArchiveTable:create(engine); 487 ProsodyArchiveTable:create(engine);
486 end); 488 end);
487 end 489 end