Skip to content

Commit

Permalink
fix migration noshow
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvanspauwen committed Nov 14, 2023
1 parent ba34e4d commit b7626a2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions migrations/Version20231114111803.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);

namespace Migrations;

use Doctrine\DBAL\Schema\Schema;

/**
* Version 20231114111803
*/
class Version20231114111803 extends \Doctrine\Migrations\AbstractMigration
{
/**
* @param \Doctrine\DBAL\Schema\Schema $schema
* @return void
*/
public function up(Schema $schema) : void
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');

$this->addSql('ALTER TABLE shop_reservations DROP noshow');
}

/**
* @param \Doctrine\DBAL\Schema\Schema $schema
* @return void
*/
public function down(Schema $schema) : void
{
$this->throwIrreversibleMigrationException();
}
}

0 comments on commit b7626a2

Please sign in to comment.