Skip to content
Snippets Groups Projects
Commit 1d57b492 authored by Sebastien's avatar Sebastien
Browse files

Correction of table column name user. => user.credential_expired

parent 9f6bada5
No related branches found
No related tags found
1 merge request!31tuleap-118-project-database-migration-terminates-with-error
Pipeline #649 passed
<?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 Version20220105130540 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 user CHANGE $credential_expired credential_expired TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `user` CHANGE credential_expired $credential_expired TINYINT(1) NOT NULL');
}
}
......@@ -56,7 +56,7 @@ class User implements UserInterface, LegacyPasswordAuthenticatedUserInterface
private $username_canonical;
/**
* @ORM\Column(type="boolean", name="$credential_expired")
* @ORM\Column(type="boolean", name="credential_expired")
*/
private $credentialExpired = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment