phpbb-extensions /
ad-management
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * |
||
| 4 | * Advertisement management. An extension for the phpBB Forum Software package. |
||
| 5 | * |
||
| 6 | * @copyright (c) 2017 phpBB Limited <https://www.phpbb.com> |
||
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
||
| 8 | * |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace phpbb\ads\migrations\v10x; |
||
| 12 | |||
| 13 | class m10_ad_owner_schema extends \phpbb\db\migration\migration |
||
|
0 ignored issues
–
show
|
|||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritDoc} |
||
| 17 | */ |
||
| 18 | public function effectively_installed() |
||
| 19 | { |
||
| 20 | return $this->db_tools->sql_column_exists($this->table_prefix . 'ads', 'ad_owner'); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritDoc} |
||
| 25 | */ |
||
| 26 | public static function depends_on() |
||
| 27 | { |
||
| 28 | return array( |
||
| 29 | '\phpbb\ads\migrations\v10x\m1_initial_schema', |
||
| 30 | '\phpbb\ads\migrations\v10x\m4_indexes', |
||
| 31 | '\phpbb\ads\migrations\v10x\m9_views_clicks', |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Add the ad owner to ads table |
||
| 37 | * |
||
| 38 | * @return array Array of table schema |
||
| 39 | * @access public |
||
| 40 | */ |
||
| 41 | public function update_schema() |
||
| 42 | { |
||
| 43 | return array( |
||
| 44 | 'add_columns' => array( |
||
| 45 | $this->table_prefix . 'ads' => array( |
||
| 46 | 'ad_owner' => array('UINT', 0), |
||
| 47 | ), |
||
| 48 | ), |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Drop the ad owner from ads table |
||
| 54 | * |
||
| 55 | * @return array Array of table schema |
||
| 56 | * @access public |
||
| 57 | */ |
||
| 58 | public function revert_schema() |
||
| 59 | { |
||
| 60 | return array( |
||
| 61 | 'drop_columns' => array( |
||
| 62 | $this->table_prefix . 'ads' => array( |
||
| 63 | 'ad_owner', |
||
| 64 | ), |
||
| 65 | ), |
||
| 66 | ); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths