| @@ -1,0 +1,20 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +declare(strict_types=1); | |
| 4 | + | |
| 5 | +namespace Metricool\Interfaces; | |
| 6 | + | |
| 7 | +interface MigrationInterface | |
| 8 | +{ | |
| 9 | + /** | |
| 10 | + * Version to run this migration for. | |
| 11 | + */ | |
| 12 | + public function version(): string; | |
| 13 | + | |
| 14 | + /** | |
| 15 | + * Perform schema/data changes required for this migration. This method is | |
| 16 | + * called from the code of the new version after an update. Make sure to | |
| 17 | + * work within that context. | |
| 18 | + */ | |
| 19 | + public function up(): void; | |
| 20 | +} | |