Skip to content

Commit

Permalink
Merge pull request #6025 from BacLuc/add-course-to-dev-data
Browse files Browse the repository at this point in the history
dev-data: add course with CheckLists and Learning(Objectives,Topics)
  • Loading branch information
usu authored Sep 28, 2024
2 parents 2d74dd4 + 1cdc1a6 commit bc1f39f
Show file tree
Hide file tree
Showing 3 changed files with 878 additions and 57 deletions.
8 changes: 0 additions & 8 deletions api/migrations/dev-data/Version202406211251.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ public function getDescription(): string {

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
}

Expand Down
31 changes: 31 additions & 0 deletions api/migrations/dev-data/Version202409281917.php
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 {}
}
Loading

0 comments on commit bc1f39f

Please sign in to comment.