remove column item.diaspora_meta, action items 2 and 3 of hubzilla issue #828

This commit is contained in:
zotlabs 2017-11-16 17:13:48 -08:00
parent d13a6180be
commit 7386fa57c8
3 changed files with 13 additions and 4 deletions

View File

@ -53,7 +53,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'STD_VERSION', '2.9' );
define ( 'ZOT_REVISION', '1.3' );
define ( 'DB_UPDATE_VERSION', 1197 );
define ( 'DB_UPDATE_VERSION', 1198 );
define ( 'PROJECT_BASE', __DIR__ );

View File

@ -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 '',

View File

@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1197 );
define( 'UPDATE_VERSION' , 1198 );
/**
*
@ -3059,4 +3059,14 @@ function update_r1196() {
}
return UPDATE_FAILED;
}
}
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;
}