Fix default value for image_faces value in ansel_images table
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 25 Mar 2010 00:41:00 +0000 (20:41 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 25 Mar 2010 00:41:54 +0000 (20:41 -0400)
ansel/scripts/sql/ansel.pgsql.sql

index b54006b..5ce268f 100644 (file)
@@ -6,7 +6,7 @@ CREATE TABLE ansel_images (
     image_caption        TEXT,
     image_uploaded_date  INT NOT NULL,
     image_sort           INT NOT NULL,
-    image_faces          INT NOT NULL,
+    image_faces          INT DEFAULT 0 NOT NULL,
     image_original_date  INT NOT NULL,
     image_latitude VARCHAR(32),
     image_longitude VARCHAR(32),