Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -149,15 +149,19 @@ class _Upgrade
|
||||
*/
|
||||
public function step3()
|
||||
{
|
||||
if( \IPS\Db::i()->checkForTable('nexus_referrals' ) )
|
||||
try
|
||||
{
|
||||
\IPS\Db::i()->insert( 'core_referrals', \IPS\Db::i()->select( 'member_id, referred_by, amount', 'nexus_referrals' ) );
|
||||
}
|
||||
if( \IPS\Db::i()->checkForTable('nexus_referrals' ) )
|
||||
{
|
||||
\IPS\Db::i()->insert( 'core_referrals', \IPS\Db::i()->select( 'member_id, referred_by, amount', 'nexus_referrals' ), FALSE, TRUE );
|
||||
}
|
||||
|
||||
if( \IPS\Db::i()->checkForTable('nexus_referral_banners' ) )
|
||||
{
|
||||
\IPS\Db::i()->insert( 'core_referral_banners', \IPS\Db::i()->select( 'rb_id, rb_url, rb_upload, rb_order', 'nexus_referral_banners' ) );
|
||||
if( \IPS\Db::i()->checkForTable('nexus_referral_banners' ) )
|
||||
{
|
||||
\IPS\Db::i()->insert( 'core_referral_banners', \IPS\Db::i()->select( 'rb_id, rb_url, rb_upload, rb_order', 'nexus_referral_banners' ), FALSE, TRUE );
|
||||
}
|
||||
}
|
||||
catch ( \Exception $e ) {}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user