diff options
author | friendica <info@friendica.com> | 2014-06-22 17:15:42 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-22 17:15:42 -0700 |
commit | 1dacfb375eac1586495c34110275e70215aeea32 (patch) | |
tree | 249024d10b8afde3862036386201cde8d1cf435c /install | |
parent | 301c7cdb89b13c4fc7c502795f121e13c1f9441d (diff) | |
download | volse-hubzilla-1dacfb375eac1586495c34110275e70215aeea32.tar.gz volse-hubzilla-1dacfb375eac1586495c34110275e70215aeea32.tar.bz2 volse-hubzilla-1dacfb375eac1586495c34110275e70215aeea32.zip |
honour the admin censored flag in the directory, and some slow progress on extended likes
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 4 | ||||
-rw-r--r-- | install/update.php | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql index 388bfdfd2..cb4846b52 100644 --- a/install/database.sql +++ b/install/database.sql @@ -575,13 +575,15 @@ CREATE TABLE IF NOT EXISTS `item_id` ( CREATE TABLE IF NOT EXISTS `likes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `channel_id` int(11) unsigned NOT NULL DEFAULT '0', `liker` char(128) NOT NULL DEFAULT '', `likee` char(128) NOT NULL DEFAULT '', - `iid` int(11) NOT NULL DEFAULT '0', + `iid` int(10) unsigned NOT NULL DEFAULT '0', `verb` char(255) NOT NULL DEFAULT '', `target_type` char(255) NOT NULL DEFAULT '', `target` mediumtext NOT NULL, PRIMARY KEY (`id`), + KEY `channel_id` (`channel_id`), KEY `liker` (`liker`), KEY `likee` (`likee`), KEY `iid` (`iid`), diff --git a/install/update.php b/install/update.php index 4981acc5d..b6bcfa237 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1113 ); +define( 'UPDATE_VERSION' , 1114 ); /** * @@ -1273,3 +1273,13 @@ function update_r1112() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1113() { + $r = q("ALTER TABLE `likes` ADD `channel_id` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `id` , +CHANGE `iid` `iid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0', +ADD INDEX ( `channel_id` )"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |