migrations/Version20230707071045.php line 1

Open in your IDE?
  1. <?php
    
    declare(strict_types=1);
    
    namespace DoctrineMigrations;
    
    use Doctrine\DBAL\Schema\Schema;
    use Doctrine\Migrations\AbstractMigration;
    
    /**
     * Auto-generated Migration: Please modify to your needs!
     */
    final class Version20230707071045 extends AbstractMigration
    {
        public function getDescription(): string
        {
            return '';
        }
        public function up(Schema $schema): void
        {
            // this up() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE user ADD user_type VARCHAR(200) DEFAULT NULL, ADD ip_address INT DEFAULT NULL, ADD os_name VARCHAR(255) DEFAULT NULL, ADD browser_name VARCHAR(255) DEFAULT NULL, ADD browser_version VARCHAR(150) DEFAULT NULL, ADD area VARCHAR(255) DEFAULT NULL, ADD city VARCHAR(255) DEFAULT NULL, ADD is_active TINYINT(1) NOT NULL, ADD is_verify TINYINT(1) NOT NULL, ADD role_id INT DEFAULT NULL, ADD country VARCHAR(255) DEFAULT NULL, ADD slug VARCHAR(255) DEFAULT NULL, ADD gender VARCHAR(255) DEFAULT NULL, ADD state VARCHAR(255) DEFAULT NULL');
        }
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE user DROP user_type, DROP ip_address, DROP os_name, DROP browser_name, DROP browser_version, DROP area, DROP city, DROP is_active, DROP is_verify, DROP role_id, DROP country, DROP slug, DROP gender, DROP state');
        }
    }