Channel update
This commit is contained in:
parent
c200e55f95
commit
24f3bc9f0c
47
Zotlabs/Update/_1232.php
Normal file
47
Zotlabs/Update/_1232.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Zotlabs\Update;
|
||||||
|
|
||||||
|
class _1232 {
|
||||||
|
|
||||||
|
function run() {
|
||||||
|
|
||||||
|
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
q("START TRANSACTION");
|
||||||
|
|
||||||
|
$r = q("ALTER TABLE channel
|
||||||
|
DROP channel_r_stream,
|
||||||
|
DROP channel_r_profile,
|
||||||
|
DROP channel_r_photos,
|
||||||
|
DROP channel_r_abook,
|
||||||
|
DROP channel_w_stream,
|
||||||
|
DROP channel_w_wall,
|
||||||
|
DROP channel_w_tagwall,
|
||||||
|
DROP channel_w_comment,
|
||||||
|
DROP channel_w_mail,
|
||||||
|
DROP channel_w_photos,
|
||||||
|
DROP channel_w_chat,
|
||||||
|
DROP channel_a_delegate,
|
||||||
|
DROP channel_r_storage,
|
||||||
|
DROP channel_w_storage,
|
||||||
|
DROP channel_r_pages,
|
||||||
|
DROP channel_w_pages,
|
||||||
|
DROP channel_a_republish,
|
||||||
|
DROP channel_w_like"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($r) {
|
||||||
|
q("COMMIT");
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
q("ROLLBACK");
|
||||||
|
return UPDATE_FAILED;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
2
boot.php
2
boot.php
@ -53,7 +53,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
|
|||||||
define ( 'STD_VERSION', '4.1.2' );
|
define ( 'STD_VERSION', '4.1.2' );
|
||||||
define ( 'ZOT_REVISION', '6.0a' );
|
define ( 'ZOT_REVISION', '6.0a' );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1231 );
|
define ( 'DB_UPDATE_VERSION', 1232 );
|
||||||
|
|
||||||
define ( 'PROJECT_BASE', __DIR__ );
|
define ( 'PROJECT_BASE', __DIR__ );
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -269,24 +269,6 @@ CREATE TABLE IF NOT EXISTS `channel` (
|
|||||||
`channel_allow_gid` mediumtext NOT NULL,
|
`channel_allow_gid` mediumtext NOT NULL,
|
||||||
`channel_deny_cid` mediumtext NOT NULL,
|
`channel_deny_cid` mediumtext NOT NULL,
|
||||||
`channel_deny_gid` mediumtext NOT NULL,
|
`channel_deny_gid` mediumtext NOT NULL,
|
||||||
`channel_r_stream` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_r_profile` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_r_photos` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_r_abook` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_stream` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_wall` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_tagwall` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_comment` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_mail` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_photos` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_chat` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_a_delegate` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_r_storage` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_storage` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_r_pages` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_pages` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_a_republish` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_w_like` int(10) unsigned NOT NULL DEFAULT 0 ,
|
|
||||||
`channel_removed` tinyint(1) NOT NULL DEFAULT 0 ,
|
`channel_removed` tinyint(1) NOT NULL DEFAULT 0 ,
|
||||||
`channel_system` tinyint(1) NOT NULL DEFAULT 0 ,
|
`channel_system` tinyint(1) NOT NULL DEFAULT 0 ,
|
||||||
`channel_moved` char(191) NOT NULL DEFAULT '',
|
`channel_moved` char(191) NOT NULL DEFAULT '',
|
||||||
|
Reference in New Issue
Block a user