Comparison

plugins/mod_storage_sql.lua @ 8470:81f894d08b17

mod_storage_sql: Remove ability to override name of key-value table (unreachable and would not work)
author Kim Alvefur <zash@zash.se>
date Mon, 11 Dec 2017 22:45:03 +0100
parent 8410:54ff1f91e4db
child 8480:3d3706147174
comparison
equal deleted inserted replaced
8469:52d48cea1f60 8470:81f894d08b17
453 453
454 local function create_table(engine, name) -- luacheck: ignore 431/engine 454 local function create_table(engine, name) -- luacheck: ignore 431/engine
455 local Table, Column, Index = sql.Table, sql.Column, sql.Index; 455 local Table, Column, Index = sql.Table, sql.Column, sql.Index;
456 456
457 local ProsodyTable = Table { 457 local ProsodyTable = Table {
458 name= name or "prosody"; 458 name = "prosody";
459 Column { name="host", type="TEXT", nullable=false }; 459 Column { name="host", type="TEXT", nullable=false };
460 Column { name="user", type="TEXT", nullable=false }; 460 Column { name="user", type="TEXT", nullable=false };
461 Column { name="store", type="TEXT", nullable=false }; 461 Column { name="store", type="TEXT", nullable=false };
462 Column { name="key", type="TEXT", nullable=false }; 462 Column { name="key", type="TEXT", nullable=false };
463 Column { name="type", type="TEXT", nullable=false }; 463 Column { name="type", type="TEXT", nullable=false };