Drop not null on Org name

This commit is contained in:
Charles 2026-01-27 10:23:18 +01:00
parent 4c3c8c3043
commit 9f619b5293
4 changed files with 48 additions and 1 deletions

1
.gitignore vendored
View File

@ -30,3 +30,4 @@
/config/jwt/private.key /config/jwt/private.key
/config/jwt/public.key /config/jwt/public.key
###<jwt keys### ###<jwt keys###
/composer.lock

View File

@ -0,0 +1,40 @@
<?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 Version20260127092209 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 organizations ALTER name SET NOT NULL');
$this->addSql('DROP INDEX idx_75ea56e016ba31db');
$this->addSql('DROP INDEX idx_75ea56e0e3bd61ce');
$this->addSql('DROP INDEX idx_75ea56e0fb7336f0');
$this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0E3BD61CE16BA31DBBF396750 ON messenger_messages (queue_name, available_at, delivered_at, id)');
}
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 organizations ALTER name DROP NOT NULL');
$this->addSql('DROP INDEX IDX_75EA56E0FB7336F0E3BD61CE16BA31DBBF396750');
$this->addSql('CREATE INDEX idx_75ea56e016ba31db ON messenger_messages (delivered_at)');
$this->addSql('CREATE INDEX idx_75ea56e0e3bd61ce ON messenger_messages (available_at)');
$this->addSql('CREATE INDEX idx_75ea56e0fb7336f0 ON messenger_messages (queue_name)');
}
}

View File

@ -45,7 +45,7 @@ class Organizations
#[ORM\ManyToMany(targetEntity: Apps::class, mappedBy: 'organization')] #[ORM\ManyToMany(targetEntity: Apps::class, mappedBy: 'organization')]
private Collection $apps; private Collection $apps;
#[ORM\Column(length: 255, nullable: true)] #[ORM\Column(length: 255)]
private ?string $name = null; private ?string $name = null;
/** /**

View File

@ -280,6 +280,12 @@
"tests/bootstrap.php" "tests/bootstrap.php"
] ]
}, },
"symfony/property-info": {
"version": "7.4",
"recipe": {
"version": "7.3"
}
},
"symfony/routing": { "symfony/routing": {
"version": "7.2", "version": "7.2",
"recipe": { "recipe": {