Skip to content

Commit 0d11270

Browse files
authored
Merge pull request #7970 from BacLuc/dev-data-pbs-checklists
api: add more checklist prototypes to dev-data
2 parents de4de4a + 5867b4d commit 0d11270

File tree

3 files changed

+2290
-10
lines changed

3 files changed

+2290
-10
lines changed

api/migrations/dev-data/Version202505202216.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)