forked from ecamp/ecamp3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ca09d5
commit 826e5ec
Showing
3 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DataMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
require_once __DIR__.'/helpers.php'; | ||
|
||
final class Version202404031358 extends AbstractMigration { | ||
public function getDescription(): string { | ||
return ''; | ||
} | ||
|
||
public function up(Schema $schema): void { | ||
// START PHP CODE | ||
$this->addSql(createTruncateDatabaseCommand()); | ||
|
||
$statements = getStatementsForMigrationFile(); | ||
foreach ($statements as $statement) { | ||
if (trim($statement)) { | ||
$this->addSql($statement); | ||
} | ||
} | ||
// END PHP CODE | ||
} | ||
|
||
public function down(Schema $schema): void {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters