Commit Graph

48 Commits (eb5aa38412c052e2d6aa8d99dcc32817a7836795)

Author SHA1 Message Date
Matthew Wild 0fc9766334 mod_storage_sql2: Upgrade table if its charset does not match our connection's charset (thanks Zash) 11 years ago
Matthew Wild 7573762c91 mod_storage_sql2: Don't upgrade tables without admin intervention 11 years ago
Matthew Wild 68fa7831da mod_storage_sql2: Add prosodyctl command to upgrade tables from the command-line 11 years ago
Matthew Wild 86822ee5e4 mod_storage_sql2: Add missing return to upgrade_table(), so we know if an upgrade is required 11 years ago
Matthew Wild 434b71bc6f mod_storage_sql2: Rename variable to avoid name clash 11 years ago
Kim Alvefur ce07edc7df mod_storage_sql2: Validate configuration after normalizing SQLite3 database path (fixes traceback with default config) 11 years ago
Matthew Wild 8e61cd5f9b mod_storage_sql2: Break up monolithic code into functions, theoretically no functionality changes. 11 years ago
Matthew Wild a05283925c mod_storage_sql2: Improve logging when database read fails 11 years ago
Matthew Wild 0c49a31740 mod_storage_sql2: Some reformatting and variable name improvements 11 years ago
Matthew Wild 9fa3cd9382 mod_storage_sql2: Add some comments 11 years ago
Kim Alvefur f4b4f1020a mod_storage_sql2: Fix argument compat thing from 41725f3df3cc, it was backwards 11 years ago
Kim Alvefur 720a6a5deb mod_storage_sql2: Add a 'caps' table for indicating support for optional features 11 years ago
Kim Alvefur 27a5c819f4 mod_storage_sql2: Change order of arguments to :append to be the same as return values from :find iterator 11 years ago
Kim Alvefur d6f06fa146 mod_storage_sql2: Include 'with' field from iterator like some 3rd party archive-capable storage modules 11 years ago
Kim Alvefur 655e1cde09 mod_storage_sql2, util.sql: Set character encoding on every connect 11 years ago
Kim Alvefur 578ceff99e mod_storage_sql2: Don't ignore failure in keyval_store:get() (thanks daurnimator) 12 years ago
Kim Alvefur 36b77bca8b core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths 12 years ago
Kim Alvefur afd077b62f mod_storage_sql2: Build counter query without ORDER BY clause 12 years ago
Kim Alvefur 481aefcb71 mod_storage_sql2: archive:delete() with username = true deletes for all users 12 years ago
Kim Alvefur 9550295c9d mod_storage_sql2: Only attempt to delete conflicting items if an ID/key is given 12 years ago
Kim Alvefur 372c2b460a mod_storage_sql2: Fix another SQL syntax error that slipped trough 12 years ago
Kim Alvefur 1262f0373f mod_storage_sql2: Fix SQL syntax 12 years ago
Kim Alvefur c1ce22bc82 mod_storage_sql2: Fix syntax error in subquery (Thanks Lance) 12 years ago
Kim Alvefur 2a25194b55 mod_storage_sql2: Expose the unique key argument, allowing arbitrary ids. Conflicting items are removed. 12 years ago
Kim Alvefur da4f11269d mod_storage_sql2: Include user, host and store in id lookup 12 years ago
Kim Alvefur b8218da015 mod_storage_sql2: Auto increment columns won't be NULL, so drop nullable=false 12 years ago
Kim Alvefur 999ec7ca77 mod_storage_sql2: Fix backwards comparison of timestamp 12 years ago
Kim Alvefur 7769c9bc36 mod_storage_sql2: Switch to the util.sql table definition for the main table 12 years ago
Kim Alvefur b3f9455c97 mod_storage_sql2: The prosodyarchive_index should be unique 12 years ago
Kim Alvefur abb45cc639 mod_storage_sql2: Use primary_key and auto_increment flags instead of baking that into the type 12 years ago
Kim Alvefur 029256f34a mod_storage_sql2: Use MEDIUMTEXT fields for value columns (ie TEXT on non-MySQL) 12 years ago
Kim Alvefur f925ba7723 mod_storage_sql2: Move checking of the sql_manage_tables option so it also includes table upgrades (again) 12 years ago
Kim Alvefur e993570759 mod_storage_sql2, util.sql: Move code for setting encoding to util.sql 12 years ago
Kim Alvefur d011ca8a32 mod_storage_sql2: Move all schema upgrade code to the same place 12 years ago
Kim Alvefur af3f07ec57 mod_storage_sql2: Split up setting of encoding and table upgrade code 12 years ago
Kim Alvefur e8380a3cd2 mod_storage_sql2: Add method for deleting items from archives with same syntax as :find() 12 years ago
Kim Alvefur c9f9fdd69c mod_storage_sql2: Split out code for building WHERE clauses into separate functions 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur 6b7b6e0e7b mod_storage_sql2: Do an early return and drop an indentation level 13 years ago
Kim Alvefur 3d9b1be698 mod_storage_sql2: Add archive store with append and find methods 13 years ago
Kim Alvefur 8a80110435 mod_storage_sql2: Create an additional table `prosodyarchive` for chronological collections 13 years ago
Matthew Wild 26511c10d4 mod_storage_sql2: Remove from 0.9 13 years ago
Kim Alvefur 298aef6be7 mod_storage_sql2: Support XML serialization for stanzas. 13 years ago
Kim Alvefur 1e1834a4ec mod_storage_sql2: Keep available store types in a table 13 years ago
Kim Alvefur 06561ae513 mod_storage_sql2: Fix iteration over users and stores 13 years ago
Kim Alvefur 01de781b7b mod_storage_sql2: Make sure the user field is not NULL 13 years ago
Kim Alvefur 12877796b2 mod_storage_sql2: Use correct variable (Thanks SkyBlue and Florob) 13 years ago
Matthew Wild 7d92759bf8 mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting cross-module connection sharing, transactions and Things - a work in progress 13 years ago