ref: ba61d2034058818fe76cef6b23f311259d37b3fe biboumi/src/database d---------
b0168fd4 — louiz’ 4 years ago
mam: Send “fin complete” only when appropriate

Also simplify how we did the whole “limit + 1”
And fix one bad interpretation of the XEP for the case where the query has
no after or before restriction.

fix #3349
7592d966 — louiz’ 4 years ago
Missing fields in a data-form response are now interpreted as an empty value
1236b8a0 — louiz’ 4 years ago
Only use the ID to order archives

fix #3343
61de6b1d — louiz’ 4 years ago
Revert "Use a different Date data type"

This reverts commit 857c7d3972a03cbeebf730d99b924d3710dee6a0.
a90f196a — louiz’ 4 years ago
Revert "Use the Date to find a next page in RSM, not the id"

This reverts commit 5ef7ba08028065b03d51d1dc70bb35aeb41ae19d.
5ef7ba08 — louiz’ 4 years ago
Use the Date to find a next page in RSM, not the id

This way, it works, whatever the order of insertion in the database was.

fix #3343
d375a9ed — louiz’ 4 years ago
one log_debug -> log_error, also some trivial indent
4bd7b698 — louiz’ 4 years ago
Refactor that fixes a compilation issue in Release mode

Some template specialization were not found, because they were not declared
at the point they were used.

We moved things around, things are less inter-dependant, and also now it
de8267fa — louiz’ 4 years ago
Fix a build warning when compiling without postgres or sqlite
857c7d39 — louiz’ 4 years ago
Use a different Date data type

PLEASE backup your database before testing this commit, and report any
migration issue.

In postgresql, we use timestamp with timezone.
In sqlite3 we use REAL (the date is expressed as julianday)

This requires a migration of the muclogline_ table:
In postgresql it’s pretty simple, we convert all the integer into timestamps

With sqlite3, we actually rename the table, create the new one with the
correct type, then copy everything to the new table, with a conversion
function for the Date_ column, and then we delete the old table.

fix #3343
cdace807 — louiz’ 4 years ago
Check that db.prepare worked before using the returned statement
619c991a — louiz’ 4 years ago
Add a nick field in the IRC server configuration form

fix #3317
d7427fc9 — louiz’ 4 years ago
Re-connect to postgresql when the connection is lost

fix #3336
9500bfd4 — louiz’ 4 years ago
Reflect message IDs in channel MUCs

fix #3283
5af0a804 — louiz’ 4 years ago
Use a transaction around the DELETE + INSERT of the after_connection_commands

Otherwise we can imagine that two clients changing this value at the same
time would mix things up.

ref #3275
577984fa — louiz’ 4 years ago
Allow the execution of multiple commands after the IRC connection

fix #3275
03714c6c — louiz’ 4 years ago
Revert "Use std::optional<bool> instead of OptionalBool"

This reverts commit ba879a882e031d7b8503f78fe41d1210000c96ca.
d0e3c71b — louiz’ 4 years ago
Revert "Use if constexpr to make things a lot more readable"

This reverts commit d62ca9f87906be6f046fe9d07afb8bfb69c166e3.
d62ca9f8 — louiz’ 4 years ago
Use if constexpr to make things a lot more readable
ba879a88 — louiz’ 4 years ago
Use std::optional<bool> instead of OptionalBool