DB migration, small technicalities.

* DB migration rewritten:
  * Migration scripts are embedded as FS.
  * Migration versions are handled automatically.
* Use generics in utils.
This commit is contained in:
zegkljan
2022-09-22 22:05:41 +02:00
parent c1cdd4f904
commit c9377b04fc
4 changed files with 105 additions and 36 deletions
-2
View File
@@ -21,5 +21,3 @@ CREATE TABLE feature_photos (
thumbnail_contents blob NOT NULL,
contents blob NOT NULL
);
PRAGMA user_version = 1;
-2
View File
@@ -3,5 +3,3 @@ CREATE TABLE proposals (
description text NOT NULL,
how text NOT NULL
);
PRAGMA user_version = 2;