-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6025 from BacLuc/add-course-to-dev-data
dev-data: add course with CheckLists and Learning(Objectives,Topics)
- Loading branch information
Showing
3 changed files
with
878 additions
and
57 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 Version202409281917 extends AbstractMigration { | ||
public function getDescription(): string { | ||
return 'Set color & abbreviation to some profiles'; | ||
} | ||
|
||
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 {} | ||
} |
Oops, something went wrong.