migrations/Version20231010110333.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\DBAL\Platforms\MySqlPlatform;
  8. /**
  9.  * Auto-generated Migration: Please modify to your needs!
  10.  */
  11. final class Version20231010110333 extends AbstractMigration
  12. {
  13.     public function getDescription(): string
  14.     {
  15.         return '';
  16.     }
  17.     public function up(Schema $schema): void
  18.     {
  19.         // this down() migration is auto-generated, please modify it to your needs
  20.         $this->addSql("CREATE TABLE `footer_links` ( `id` INT NOT NULL AUTO_INCREMENT , `title` VARCHAR(255) NOT NULL , `link` INT NOT NULL , `sort_order` INT NOT NULL , `is_active` TINYINT NOT NULL DEFAULT '1' ,`created_by` INT NOT NULL ,  `created_at` DATETIME NULL , `updated_at` DATETIME NULL , `deleted_at` DATETIME NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB");
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.         $this->addSql('DROP TABLE footer_links');
  26.     }
  27. }