[gnome-video-arcade] db: Adapt database schema to 0.191



commit 724b24cc5979fced420bcde676c93fe9e3afcbbd
Author: Matthew Barnes <mbarnes fedoraproject org>
Date:   Mon Oct 30 19:30:34 2017 -0400

    db: Adapt database schema to 0.191
    
    Was exceeding the maximum element depth.

 src/gva-db.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gva-db.c b/src/gva-db.c
index 76e86b0..90135de 100644
--- a/src/gva-db.c
+++ b/src/gva-db.c
@@ -31,7 +31,7 @@
         if ((code) != SQLITE_OK) g_error ("%s", sqlite3_errmsg (db));
 
 /* Based on MAME's DTD */
-#define MAX_ELEMENT_DEPTH 4
+#define MAX_ELEMENT_DEPTH 5
 
 /* The new <dipswitch> and <configuration> attributes in 0.136 are
  * REQUIRED, but we are leaving them as optional in the table schema
@@ -160,7 +160,7 @@
         "CREATE TABLE IF NOT EXISTS display (" \
                 "game NOT NULL, " \
                 "type NOT NULL " \
-                "CHECK (type in ('raster', 'vector', 'lcd', 'unknown')), " \
+                "CHECK (type in ('raster', 'vector', 'lcd', 'svg', 'unknown')), " \
                 "rotate DEFAULT '0' " \
                 "CHECK (rotate in ('0', '90', '180', '270')), " \
                 "flipx DEFAULT 'no' " \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]