initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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 Version20240627092633 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('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_IDENTIFIER_USERNAME (username), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
|
||||
$this->addSql('INSERT INTO `user` (`id`, `username`, `roles`, `password`) VALUES
|
||||
(1, "ryjek", \'[\"ROLE_USER\", \"ROLE_REPORT_EDIT\"]\', "$2y$13$ZFKnR0VtUUEvFaO1YHTaHuPqUrF.7ZCGK78VfiPTa93mEy3uEQJTi"),
|
||||
(2, "ania", \'[\"ROLE_USER\", \"ROLE_REPORT_EDIT\"]\', "$2y$13$PbCaD1M40qV10my4WoZa3ulS0EmBcx2TvacNqiy7qYnQa91/zUGyS")');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
// this down() migration is auto-generated, please modify it to your needs
|
||||
$this->addSql('DROP TABLE user');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user