Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] Correction déploiement staging et environnement local - mise à jour dernière migration #2554

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

final class Version20240426100957 extends AbstractMigration
final class Version20240513134105 extends AbstractMigration
{
public function getDescription(): string
{
Expand All @@ -16,7 +16,9 @@ public function getDescription(): string

public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE file ADD is_temp TINYINT(1) NOT NULL');
if (!$schema->getTable('file')->hasColumn('is_temp')) {
$this->addSql('ALTER TABLE file ADD is_temp TINYINT(1) NOT NULL');
}
}

public function down(Schema $schema): void
Expand Down
Loading