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
AppMigrationTemplate.php
26 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Migrations\App; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Migrator\AppMigration; |
| 9 | |
| 10 | class AppMigrationTemplate extends AppMigration { |
| 11 | public function run(): void { |
| 12 | /* |
| 13 | * TODO: Implement the migration logic here and remove this comment. |
| 14 | * |
| 15 | * App Level migration are intended for data migrations that use application level services. |
| 16 | * The application level services require the DB structure to be up to date so they run after all DB migrations. |
| 17 | * |
| 18 | * Do not make changes in the DB structure in App Level migrations! |
| 19 | * |
| 20 | * You can use: |
| 21 | * $this->entityManager For operations using Doctrine Entity Manager. |
| 22 | * $this->container For accessing any needed service. |
| 23 | */ |
| 24 | } |
| 25 | } |
| 26 |