Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Upgrade db to know the unique id is the package name now
Baptiste Daroussin committed 11 years ago
commit 65a232f123dbaf62875a8df9391cab775574e14b
parent e4b9d40
2 files changed +5 -1
modified libpkg/pkgdb.c
@@ -73,7 +73,7 @@
*/

#define DB_SCHEMA_MAJOR	0
-
#define DB_SCHEMA_MINOR	28
+
#define DB_SCHEMA_MINOR	29

#define DBVERSION (DB_SCHEMA_MAJOR * 1000 + DB_SCHEMA_MINOR)

modified libpkg/private/db_upgrades.h
@@ -643,6 +643,10 @@ static struct db_upgrades {
			" ON UPDATE CASCADE"
	");"
	},
+
	{29,
+
	"DROP INDEX packages_unique;"
+
	"CREATE UNIQUE INDEX packages_unique ON packages(name);"
+
	},
	/* Mark the end of the array */
	{ -1, NULL }