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
20 jobs for master in 4 minutes and 55 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #14296
docker
build:1

00:02:30

22.3%
passed #14297
docker
build:2

00:02:32

22.2%
failed #14298
docker
build:3

00:01:00

passed #14299
docker
build:4

00:02:16

17.4%
passed #14300
docker
build:5

00:02:44

22.6%
passed #14301
docker
build:6

00:02:18

22.7%
passed #14294
docker
build:alpine

00:02:02

manual #14295
armv7l allowed to fail manual
build:archlinux
passed #14293
docker
build:debian

00:02:24

29.5%
passed #14292
docker
build:fedora

00:02:06

21.8%
passed #14302
docker
build:without_udns

00:02:08

22.2%
 
  Test
skipped #14306
docker
test:alpine
skipped #14303
docker
test:debian
skipped #14304
docker
test:fedora
skipped #14307
freebsd
test:freebsd
skipped #14305
docker
test:without_udns
 
  Packaging
skipped #14310
docker allowed to fail
packaging:archlinux
skipped #14309
docker allowed to fail
packaging:deb
skipped #14308
docker allowed to fail
packaging:rpm
 
  External
skipped #14311
docker allowed to fail manual
coverity
 
Name Stage Failure
failed
build:3 Build
make[2]: *** [CMakeFiles/Makefile2:266: CMakeFiles/xmpp.dir/all] Error 2
make[2]: *** [CMakeFiles/Makefile2:520: CMakeFiles/utils.dir/all] Error 2
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/irc.dir/build.make:111: CMakeFiles/irc.dir/src/irc/irc_client.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:335: CMakeFiles/irc.dir/all] Error 2
[ 52%] Built target network
make[1]: *** [CMakeFiles/Makefile2:108: CMakeFiles/everything.dir/rule] Error 2
make: *** [Makefile:177: everything] Error 2
ERROR: Job failed: exit code 1