diff options
author | friendica <info@friendica.com> | 2013-07-17 21:38:37 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-17 21:38:37 -0700 |
commit | fc265a8e3a1c6b2f5098b6e9b8243492b706222f (patch) | |
tree | d828248191dc9a7e28942cb0e0f296abe4e2abc3 /install/update.php | |
parent | 15a614e1583db8ea5fab8f51172ed23f666ac235 (diff) | |
download | volse-hubzilla-fc265a8e3a1c6b2f5098b6e9b8243492b706222f.tar.gz volse-hubzilla-fc265a8e3a1c6b2f5098b6e9b8243492b706222f.tar.bz2 volse-hubzilla-fc265a8e3a1c6b2f5098b6e9b8243492b706222f.zip |
block duplicate channels
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 160d94a4d..8bc629f71 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1052 ); +define( 'UPDATE_VERSION' , 1053 ); /** * @@ -626,3 +626,12 @@ function update_r1051() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + + +function update_r1052() { + $r = q("ALTER TABLE `channel` ADD UNIQUE (`channel_address`) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |