Skip to content

Commit

Permalink
Merge pull request #324 from loic425/fix/missing-migration
Browse files Browse the repository at this point in the history
Fix missing Doctrine migration
  • Loading branch information
loic425 committed Apr 8, 2021
2 parents 3b89d89 + 8e60696 commit 942c9bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ jobs:
APP_DEBUG=1 bin/console doctrine:database:create -vvv
bin/console doctrine:migrations:migrate -n -vvv
-
name: Validate Doctrine mapping
run: make validate-doctrine-schema
if: always() && steps.end-of-setup.outcome == 'success'

-
name: Test provided migrations
run: make test-doctrine-migrations
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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 Version20210408131015 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 sylius_admin_user CHANGE password password VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE sylius_app_user CHANGE password password VARCHAR(255) DEFAULT NULL');
}

public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sylius_admin_user CHANGE password password VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`');
$this->addSql('ALTER TABLE sylius_app_user CHANGE password password VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_unicode_ci`');
}
}

0 comments on commit 942c9bd

Please sign in to comment.