✨ feat(all): Ajoute l'inscription, Turnstile, Sentry et améliore l'EPAGE en français.
```
39 lines
1.8 KiB
PHP
39 lines
1.8 KiB
PHP
<?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 Version20251203170629 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 on_boaring_epage (id SERIAL NOT NULL, abos_id INT DEFAULT NULL, account_id INT DEFAULT NULL, uuid VARCHAR(255) NOT NULL, state VARCHAR(255) NOT NULL, pseudo VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, surname VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, use_domain BOOLEAN NOT NULL, page_url VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))');
|
|
$this->addSql('CREATE INDEX IDX_30B9DF1AE79C5B2 ON on_boaring_epage (abos_id)');
|
|
$this->addSql('CREATE INDEX IDX_30B9DF1A9B6B5FBA ON on_boaring_epage (account_id)');
|
|
$this->addSql('ALTER TABLE on_boaring_epage ADD CONSTRAINT FK_30B9DF1AE79C5B2 FOREIGN KEY (abos_id) REFERENCES abonements (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
|
$this->addSql('ALTER TABLE on_boaring_epage ADD CONSTRAINT FK_30B9DF1A9B6B5FBA FOREIGN KEY (account_id) REFERENCES "account" (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
// this down() migration is auto-generated, please modify it to your needs
|
|
$this->addSql('CREATE SCHEMA public');
|
|
$this->addSql('ALTER TABLE on_boaring_epage DROP CONSTRAINT FK_30B9DF1AE79C5B2');
|
|
$this->addSql('ALTER TABLE on_boaring_epage DROP CONSTRAINT FK_30B9DF1A9B6B5FBA');
|
|
$this->addSql('DROP TABLE on_boaring_epage');
|
|
}
|
|
}
|