14484: Updates the db structure after db:migrate
authorEric Biagiotti <ebiagiotti@veritasgenetics.com>
Mon, 25 Mar 2019 20:17:37 +0000 (16:17 -0400)
committerEric Biagiotti <ebiagiotti@veritasgenetics.com>
Mon, 25 Mar 2019 20:17:37 +0000 (16:17 -0400)
Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti@veritasgenetics.com>

services/api/db/structure.sql

index f766f33e1b35e1f85a64aa2c5d87bf85e2bb6d0f..1eefc1300708f6e5c93ed2125941d4d947baaaa7 100644 (file)
@@ -175,7 +175,9 @@ CREATE TABLE public.collections (
     storage_classes_confirmed_at timestamp without time zone,
     current_version_uuid character varying,
     version integer DEFAULT 1 NOT NULL,
-    preserve_version boolean DEFAULT false
+    preserve_version boolean DEFAULT false,
+    file_count integer DEFAULT 0 NOT NULL,
+    file_size_total integer DEFAULT 0 NOT NULL
 );
 
 
@@ -3220,3 +3222,5 @@ INSERT INTO schema_migrations (version) VALUES ('20181213183234');
 
 INSERT INTO schema_migrations (version) VALUES ('20190214214814');
 
+INSERT INTO schema_migrations (version) VALUES ('20190322174136');
+