vendor/boldr/users-bundle/migrations/Version0_Install.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Boldr\Cms\UsersBundle\Migrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Boldr\Cms\CmsBundle\BoldrCmsMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version0_Install extends BoldrCmsMigration
  10. {
  11.     public function getVersion(): ?string { return null; }
  12.     public function getBundle(): string { return 'boldr/users-bundle'; }
  13.     public function getDescription(): string
  14.     {
  15.         return '';
  16.     }
  17.     public function up(Schema $schema): void
  18.     {
  19.         // this up() migration is auto-generated, please modify it to your needs
  20.         $this->addSql('CREATE TABLE users_user (id INT UNSIGNED AUTO_INCREMENT NOT NULL, username VARCHAR(255) NOT NULL, email_address VARCHAR(255) NOT NULL, password_hash VARCHAR(255) NOT NULL, email_address_is_confirmed TINYINT(1) DEFAULT \'0\' NOT NULL, confirm_email_address_token VARCHAR(255) DEFAULT NULL, forgot_password_token VARCHAR(255) DEFAULT NULL, time_forgot_password_token_expires DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
  21.     }
  22. }