Deprecated: Constant E_STRICT is deprecated in /data/web/apps/test2-bridge.kwalitaria.bluebirdday.io/releases/1/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /data/web/apps/test2-bridge.kwalitaria.bluebirdday.io/releases/1/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

migrations/Version20230403153148.php line 1

  1. <?php
    
    declare(strict_types=1);
    
    namespace DoctrineMigrations;
    
    use Doctrine\DBAL\Schema\Schema;
    use Doctrine\Migrations\AbstractMigration;
    
    /**
     * Reward points table.
     */
    final class Version20230403153148 extends AbstractMigration
    {
        public function getDescription(): string
        {
            return 'Add reward_points table';
        }
    
        public function up(Schema $schema): void
        {
            $this->addSql('CREATE TABLE reward_points (id CHAR(36) NOT NULL COMMENT \'(DC2Type:uuid)\', bar_code VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, points INT NOT NULL, updated_at DATETIME DEFAULT NULL, created_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_45004FAD70D524AA (bar_code), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
        }
    
        public function down(Schema $schema): void
        {
            $this->addSql('DROP TABLE reward_points');
        }
    
        public function isTransactional(): bool
        {
            return false;
        }
    }