put back obsolete permission fields in abook and channel schema files so we can restore the old data without choking when upgrading the table type

This commit is contained in:
zotlabs 2017-05-25 22:10:01 -07:00
parent b4da2d35bf
commit 57edfa7ae8

View File

@ -18,6 +18,8 @@ CREATE TABLE IF NOT EXISTS `abook` (
`abook_account` int(10) unsigned NOT NULL DEFAULT '0',
`abook_channel` int(10) unsigned NOT NULL DEFAULT '0',
`abook_xchan` char(191) NOT NULL DEFAULT '',
`abook_my_perms` int(11) NOT NULL DEFAULT '0',
`abook_their_perms` int(11) NOT NULL DEFAULT '0',
`abook_closeness` tinyint(3) unsigned NOT NULL DEFAULT '99',
`abook_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`abook_updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
@ -264,6 +266,24 @@ CREATE TABLE IF NOT EXISTS `channel` (
`channel_allow_gid` mediumtext NOT NULL,
`channel_deny_cid` 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_system` tinyint(1) NOT NULL DEFAULT '0',
`channel_moved` char(191) NOT NULL DEFAULT '',