[Rawstudio-commit] r3020 - branches/rawstudio-ng-color/src

Anders Kvist anders at kvistmail.dk
Sun Jan 17 02:14:47 CET 2010


Author: akv
Date: 2010-01-17 02:14:47 +0100 (Sun, 17 Jan 2010)
New Revision: 3020

Modified:
   branches/rawstudio-ng-color/src/rs-library.c
Log:
Removed creation of version and insert to version from library_check_version() - not needed as new tables are added in library_create_tables().

Modified: branches/rawstudio-ng-color/src/rs-library.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-library.c	2010-01-17 00:47:28 UTC (rev 3019)
+++ branches/rawstudio-ng-color/src/rs-library.c	2010-01-17 01:14:47 UTC (rev 3020)
@@ -157,19 +157,6 @@
 		switch (version)
 		{
 		case 0:
-			/* Add missing version table */
-			sqlite3_prepare_v2(db, "create table version (version integer)", -1, &stmt, NULL);
-			rc = sqlite3_step(stmt);
-			library_sqlite_error(db, rc);
-			sqlite3_finalize(stmt);
-
-			/* Set current version */
-			rc = sqlite3_prepare_v2(db, "insert into version (version) values (?1);", -1, &stmt, NULL);
-			rc = sqlite3_bind_int(stmt, 1, LIBRARY_VERSION);
-			rc = sqlite3_step(stmt);
-			library_sqlite_error(db, rc);
-			sqlite3_finalize(stmt);
-
 			/* Alter table library - add identifier column */
 			sqlite3_prepare_v2(db, "alter table library add column identifier varchar(32)", -1, &stmt, NULL);
 			rc = sqlite3_step(stmt);




More information about the Rawstudio-commit mailing list