mytube-backend/data/migrations/homepage/Version20231021112654.php
2024-02-14 20:14:58 +01:00

34 lines
690 B
PHP

<?php
declare(strict_types=1);
namespace Template\Migrations\Template;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231021112654 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add url to product';
}
public function up(Schema $schema): void
{
$sql = "ALTER TABLE product ADD COLUMN url varchar(255) NULL after name";
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$sql = "ALTER TABLE product DROP COLUMN url;";
$this->addSql($sql);
}
}