Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* @brief 4.0.0 Upgrade Code
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Gallery
|
||||
* @since 24 Oct 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
@@ -31,7 +31,33 @@ class _Upgrade
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::runLegacySql( 'gallery', 40000 );
|
||||
\IPS\Db::i()->query( "INSERT INTO " . \IPS\Db::i()->prefix . "gallery_albums_main
|
||||
(album_id, album_parent_id, album_owner_id, album_name, album_name_seo, album_description, album_is_public,
|
||||
album_is_global, album_is_profile, album_count_imgs, album_count_comments, album_count_imgs_hidden,
|
||||
album_count_comments_hidden, album_cover_img_id, album_last_img_id, album_last_img_date, album_sort_options,
|
||||
album_allow_comments, album_cache, album_node_level, album_node_left, album_node_right, album_g_approve_img, album_g_approve_com,
|
||||
album_g_bitwise, album_g_rules, album_g_container_only, album_g_perms_thumbs, album_g_perms_view,
|
||||
album_g_perms_images, album_g_perms_comments, album_g_perms_moderate, album_child_tree, album_parent_tree, album_preset_tags, album_g_latest_imgs )
|
||||
( SELECT a.id, a.parent, a.member_id, a.name, a.name_seo, a.description,( CASE WHEN a.friend_only THEN 2 WHEN a.public_album THEN 1 ELSE 0 END ),
|
||||
0, a.profile_album, a.images, a.comments, a.mod_images,
|
||||
a.mod_comments, 0, 0, 0, '',
|
||||
1, CONCAT( 'cat-', a.category_id ), 0, 0, 0, 0, 0,
|
||||
0, '', 0, '*', '*',
|
||||
'*', '*', '', '', '', '', '' FROM " . \IPS\Db::i()->prefix . "gallery_albums a)" );
|
||||
|
||||
\IPS\Db::i()->query( "INSERT INTO " . \IPS\Db::i()->prefix . "gallery_albums_main
|
||||
(album_parent_id, album_owner_id, album_name, album_name_seo, album_description, album_is_public,
|
||||
album_is_global, album_is_profile, album_count_imgs, album_count_comments, album_count_imgs_hidden,
|
||||
album_count_comments_hidden, album_cover_img_id, album_last_img_id, album_last_img_date, album_sort_options,
|
||||
album_allow_comments, album_cache, album_node_level, album_node_left, album_node_right, album_g_approve_img, album_g_approve_com,
|
||||
album_g_bitwise, album_g_rules, album_g_container_only, album_g_perms_thumbs, album_g_perms_view,
|
||||
album_g_perms_images, album_g_perms_comments, album_g_perms_moderate, album_child_tree, album_parent_tree, album_preset_tags, album_g_latest_imgs )
|
||||
( SELECT 0, 0, c.name, c.name_seo, c.description, 1,
|
||||
1, 0, c.images, c.comments, c.mod_images,
|
||||
0, 0, 0, 0, '',
|
||||
c.allow_comments, CONCAT( 'catid-', c.id ), 0, 0, 0, c.mod_images, c.mod_comments,
|
||||
0, CONCAT( 'parent-cat-', c.parent ), c.category_only, p.perm_view, p.perm_2,
|
||||
p.perm_3, p.perm_4, p.perm_5, '', '', '', '' FROM `" . \IPS\Db::i()->prefix . "gallery_categories` c, `" . \IPS\Db::i()->prefix . "core_permission_index` p WHERE p.perm_type='cat' AND p.perm_type_id=c.id AND p.app='gallery' ORDER BY c.id ASC )" );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user