diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-16 17:13:48 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-16 17:13:48 -0800 |
commit | 7386fa57c8fd8422b6aa2c947603c8c2f945ba62 (patch) | |
tree | 583e8b4a10a5987a8ed2bbde27944ac914850f1f /install | |
parent | d13a6180be310cb184f891fa2b969542691c1863 (diff) | |
download | volse-hubzilla-7386fa57c8fd8422b6aa2c947603c8c2f945ba62.tar.gz volse-hubzilla-7386fa57c8fd8422b6aa2c947603c8c2f945ba62.tar.bz2 volse-hubzilla-7386fa57c8fd8422b6aa2c947603c8c2f945ba62.zip |
remove column item.diaspora_meta, action items 2 and 3 of hubzilla issue #828
Diffstat (limited to 'install')
-rw-r--r-- | install/schema_mysql.sql | 1 | ||||
-rw-r--r-- | install/update.php | 14 |
2 files changed, 12 insertions, 3 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index afa3c095d..673e4cd75 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -609,7 +609,6 @@ CREATE TABLE IF NOT EXISTS `item` ( `resource_type` char(16) NOT NULL DEFAULT '', `attach` mediumtext NOT NULL, `sig` text NOT NULL, - `diaspora_meta` mediumtext NOT NULL, `location` char(191) NOT NULL DEFAULT '', `coord` char(191) NOT NULL DEFAULT '', `public_policy` char(191) NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index 7d59555d3..f7b9b03ed 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1197 ); +define( 'UPDATE_VERSION' , 1198 ); /** * @@ -3059,4 +3059,14 @@ function update_r1196() { } return UPDATE_FAILED; -}
\ No newline at end of file +} + +function update_r1197() { + + $r = q("select diaspora_meta from item where true limit 1"); + if($r) { + $r = q("ALTER TABLE item DROP diaspora_meta"); + } + + return UPDATE_SUCCESS; +} |