for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* Advertisement management. An extension for the phpBB Forum Software package.
* @copyright (c) 2017 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*/
namespace phpbb\ads\migrations\v10x;
class m10_views_clicks_data extends \phpbb\db\migration\migration
{
* {@inheritDoc}
public function effectively_installed()
return $this->config->offsetExists('phpbb_ads_enable_views');
}
static public function depends_on()
return array(
'\phpbb\ads\migrations\v10x\m1_initial_schema',
'\phpbb\ads\migrations\v10x\m9_views_clicks_schema',);
* Add phpbb_ads_enable_views and phpbb_ads_enable_clicks config
* @return array Array of data update instructions
public function update_data()
array('config.add', array('phpbb_ads_enable_views', 0)),
array('config.add', array('phpbb_ads_enable_clicks', 0)),
);