From a5f917bbc55e295896b8084f6657eb8b6abaf8a8 Mon Sep 17 00:00:00 2001
From: André Fabian Silva Delgado <emulatorman@parabola.nu>
Date: Fri, 15 Jul 2016 15:33:36 -0300
Subject: Add TimedMediaHandler extension that allows display audio and video
 files in wiki pages, using the same syntax as for image files

---
 extensions/TimedMediaHandler/archives/transcode_name_key.sql | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 extensions/TimedMediaHandler/archives/transcode_name_key.sql

(limited to 'extensions/TimedMediaHandler/archives/transcode_name_key.sql')

diff --git a/extensions/TimedMediaHandler/archives/transcode_name_key.sql b/extensions/TimedMediaHandler/archives/transcode_name_key.sql
new file mode 100644
index 00000000..85b00858
--- /dev/null
+++ b/extensions/TimedMediaHandler/archives/transcode_name_key.sql
@@ -0,0 +1,3 @@
+-- Add unique constrain on name/key
+DROP INDEX /*i*/transcode_name_inx ON /*_*/transcode;
+CREATE UNIQUE INDEX /*i*/transcode_name_key ON /*_*/transcode (transcode_image_name,transcode_key);
-- 
cgit v1.2.3-54-g00ecf

