File tree Expand file tree Collapse file tree 3 files changed +2290
-10
lines changed Expand file tree Collapse file tree 3 files changed +2290
-10
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,6 @@ public function getDescription(): string {
1616
1717 public function up (Schema $ schema ): void {
1818 // START PHP CODE
19- $ this ->addSql (createTruncateDatabaseCommand ());
20-
21- $ statements = getStatementsForMigrationFile ();
22- foreach ($ statements as $ statement ) {
23- if (trim ($ statement )) {
24- $ this ->addSql ($ statement );
25- }
26- }
2719 // END PHP CODE
2820 }
2921
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace DataMigrations ;
6+
7+ use Doctrine \DBAL \Schema \Schema ;
8+ use Doctrine \Migrations \AbstractMigration ;
9+
10+ require_once __DIR__ .'/helpers.php ' ;
11+
12+ final class Version202508132053 extends AbstractMigration {
13+ public function getDescription (): string {
14+ return 'Add 2nd period to Harry Potter camp ' ;
15+ }
16+
17+ public function up (Schema $ schema ): void {
18+ // START PHP CODE
19+ $ this ->addSql (createTruncateDatabaseCommand ());
20+
21+ $ statements = getStatementsForMigrationFile ();
22+ foreach ($ statements as $ statement ) {
23+ if (trim ($ statement )) {
24+ $ this ->addSql ($ statement );
25+ }
26+ }
27+ // END PHP CODE
28+ }
29+
30+ public function down (Schema $ schema ): void {}
31+ }
You can’t perform that action at this time.
0 commit comments