AppMigration.php
2 years ago
AppMigrationTemplate.php
2 years ago
Cli.php
2 weeks ago
DbMigration.php
6 months ago
DbMigrationTemplate.php
2 years ago
Logger.php
2 years ago
Migrator.php
1 year ago
MigratorException.php
2 years ago
Repository.php
2 years ago
Runner.php
2 years ago
Store.php
6 months ago
index.php
3 years ago
DbMigrationTemplate.php
24 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Migrations\Db; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Migrator\DbMigration; |
| 9 | |
| 10 | class DbMigrationTemplate extends DbMigration { |
| 11 | public function run(): void { |
| 12 | /* |
| 13 | * TODO: Implement the migration logic here and remove this comment. |
| 14 | * |
| 15 | * DB Level Migrations are intended for DB structure changes and low level data migrations. |
| 16 | * If you need more complex logic/services use App Level migrations. |
| 17 | * |
| 18 | * You can use: |
| 19 | * $this->connection For SQL queries using Doctrine DBAL. |
| 20 | * global $wpdb For SQL queries using WordPress $wpdb. |
| 21 | */ |
| 22 | } |
| 23 | } |
| 24 |