Fix SQLite buffer setup, fix PostgreSQL migration 274/head
authorShane Synan <digitalcircuit36939@gmail.com>
Sat, 4 Mar 2017 22:15:13 +0000 (16:15 -0600)
committerShane Synan <digitalcircuit36939@gmail.com>
Sun, 5 Mar 2017 05:19:07 +0000 (23:19 -0600)
Remove the ALTER TABLE command, this isn't needed during setup as the
buffer's getting created for the first time.

Add the CHECK constraint as seen in the upgrade script, limiting the
value of lastseenmsgid.

Add handling for lastmsgid when migrating from SQLite to PostgreSQL.

Fix 'SELECT populate_lastmsgid()' call by first resetting the query.

This fixes breakages caused by incomplete work in pull request #273.


No differences found