Use uniqid for wishes and users
This commit is contained in:
parent
ee063cd439
commit
946b30b486
10 changed files with 77 additions and 9 deletions
33
migrations/Version20220117193804.php
Normal file
33
migrations/Version20220117193804.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?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 Version20220117193804 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 url_id VARCHAR(13) NOT NULL');
|
||||
$this->addSql('ALTER TABLE wish ADD url_id VARCHAR(13) NOT 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 url_id');
|
||||
$this->addSql('ALTER TABLE wish DROP url_id');
|
||||
}
|
||||
}
|
Reference in a new issue