From fc265a8e3a1c6b2f5098b6e9b8243492b706222f Mon Sep 17 00:00:00 2001
From: friendica <info@friendica.com>
Date: Wed, 17 Jul 2013 21:38:37 -0700
Subject: block duplicate channels

---
 install/database.sql | 1 +
 1 file changed, 1 insertion(+)

(limited to 'install/database.sql')

diff --git a/install/database.sql b/install/database.sql
index 2a31ce0cf..acafabde8 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -182,6 +182,7 @@ CREATE TABLE IF NOT EXISTS `channel` (
   `channel_r_pages` int(10) unsigned NOT NULL DEFAULT '128',
   `channel_w_pages` int(10) unsigned NOT NULL DEFAULT '128',
   PRIMARY KEY (`channel_id`),
+  UNIQUE KEY `channel_address_unique` (`channel_address`),
   KEY `channel_account_id` (`channel_account_id`),
   KEY `channel_primary` (`channel_primary`),
   KEY `channel_name` (`channel_name`),
-- 
cgit v1.2.3

