Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
sqldb: do sone cleanup and bump schema to version 36
Baptiste Daroussin committed 3 years ago
commit 1ff663858bac622091b6060207d5bd445e6c40f8
parent 32e8549
2 files changed +5 -1
modified libpkg/pkgdb.c
@@ -90,7 +90,7 @@ extern struct pkg_ctx ctx;
*/

#define DB_SCHEMA_MAJOR	0
-
#define DB_SCHEMA_MINOR	35
+
#define DB_SCHEMA_MINOR	36

#define DBVERSION (DB_SCHEMA_MAJOR * 1000 + DB_SCHEMA_MINOR)

modified libpkg/private/db_upgrades.h
@@ -724,6 +724,10 @@ static struct db_upgrades {
		"WHERE lua_script_id NOT IN "
			"( SELECT DISTINCT lua_script_id from lua_script );"
	"END;"
+
	}, { 36,
+
	"DROP VIEW IF EXISTS lua_scripts; "
+
	"DROP VIEW IF EXISTS options; "
+
	"DROP VIEW IF EXISTS scripts; "
	},
	/* Mark the end of the array */
	{ -1, NULL }