yesodweb / serversession

Secure, modular server-side sessions.
http://www.stackage.org/package/serversession
30 stars 20 forks source link

1.0.4 causes a problem with MariaDB #13

Open pankaramp opened 7 years ago

pankaramp commented 7 years ago

Using serversession-backend-persistent 1.0.4 under Yesod 1.4.4 with MariaDB 10.1.23 gives the following error when running automatic migrations:

Starting devel application
Migrating: ALTER TABLE `persistent_session` ALTER COLUMN `auth_id` SET DEFAULT NULL
05/Jul/2017:17:16:50 +0300 [Debug#SQL] ALTER TABLE `persistent_session` ALTER COLUMN `auth_id` SET DEFAULT NULL; []
devel.hs: ConnectionError {errFunction = "query", errNumber = 1101, errMessage = "BLOB/TEXT column 'auth_id' can't have a default value"}
Unexpected: child process exited with ExitFailure 1

Reverting to 1.0.3 fixes this.

MichaelXavier commented 7 years ago

@sbditto85 Any ideas here? I don't use either mysql or mariadb for anything.