]> git.ipfire.org Git - pakfire.git/commitdiff
db: Fix updated table layout
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Oct 2022 11:18:39 +0000 (11:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Oct 2022 11:19:34 +0000 (11:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/db.c

index c8158411c8b12f988dc3c4eb39b3596667b09771..f05d48624261f5ea794da657ad5001538515089a 100644 (file)
@@ -361,7 +361,8 @@ static int pakfire_db_create_schema(struct pakfire_db* db) {
                        "filename        TEXT, "
                        "size            INTEGER, "
                        "inst_size       INTEGER, "
-                       "digest_sha2_512 BLOB, "
+                       "digest_type     INTEGER, "
+                       "digest          BLOB, "
                        "license         TEXT, "
                        "summary         TEXT, "
                        "description     TEXT, "
@@ -962,8 +963,8 @@ static int pakfire_db_add_files(struct pakfire_db* db, unsigned long id, struct
                                "config, "
                                "datafile, "
                                "mode, "
-                               "user, "
-                               "'group', "
+                               "uname, "
+                               "gname, "
                                "ctime, "
                                "mtime, "
                                "capabilities, "