added 2 missing indexes to uploaded_media
[mir.git] / dbscripts / create_pg.sql
index f10b4a6..6b3501e 100755 (executable)
@@ -315,6 +315,9 @@ CREATE TABLE "other_media" (
 )
 INHERITS ("uploaded_media");
 
+CREATE        INDEX "idx_othermedia_is_published_produced" on "other_media" using btree ( "is_published" "bool_ops", "is_produced" "bool_ops" );
+CREATE UNIQUE INDEX "idx_othermedia_id" on "other_media" using btree ( "id" "int4_ops" );
+
 --
 -- content
 --