profilers
2 years ago
versions
2 years ago
migration-exception.php
2 years ago
migration-model.php
2 years ago
migrator.php
2 years ago
view-migrations.php
2 years ago
view-migrations.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Migrations; |
| 5 | |
| 6 | use Jet_Form_Builder\Db_Queries\Views\View_Base; |
| 7 | |
| 8 | // If this file is called directly, abort. |
| 9 | if ( ! defined( 'WPINC' ) ) { |
| 10 | die; |
| 11 | } |
| 12 | |
| 13 | class View_Migrations extends View_Base { |
| 14 | |
| 15 | /** |
| 16 | * @return string |
| 17 | */ |
| 18 | public function table(): string { |
| 19 | return Migration_Model::table(); |
| 20 | } |
| 21 | |
| 22 | public function select_columns(): array { |
| 23 | return Migration_Model::schema_columns(); |
| 24 | } |
| 25 | |
| 26 | public function get_dependencies(): array { |
| 27 | return array( |
| 28 | new Migration_Model(), |
| 29 | ); |
| 30 | } |
| 31 | } |
| 32 |