Skip to content

Commit

Permalink
Add database migration and add comments to MemberFixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuverkropp authored and ssuverkropp committed Mar 3, 2024
1 parent 662540b commit 1a205a3
Show file tree
Hide file tree
Showing 3 changed files with 1,934 additions and 31 deletions.
31 changes: 31 additions & 0 deletions migrations/Version20240303195249.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240303195249 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}

public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE admin_member ADD comments LONGTEXT DEFAULT NULL');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE admin_member DROP comments');
}
}
1 change: 1 addition & 0 deletions src/DataFixtures/MemberFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function load(ObjectManager $manager)
$admin->setIsAdmin(true);
$admin->setContributionPerPeriodInEuros(5);
$admin->setPasswordHash(password_hash("admin", PASSWORD_DEFAULT));
$admin->setComments("Dit is de Baas");
$manager->persist($admin);

// Add Division (Groep) with contact member and new member
Expand Down
Loading

0 comments on commit 1a205a3

Please sign in to comment.