diff --git a/src/Bundle/ChillMainBundle/migrations/Version20241104135957.php b/src/Bundle/ChillEventBundle/migrations/Version20241104135957.php similarity index 96% rename from src/Bundle/ChillMainBundle/migrations/Version20241104135957.php rename to src/Bundle/ChillEventBundle/migrations/Version20241104135957.php index 8693ebbe0..291e6cadc 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20241104135957.php +++ b/src/Bundle/ChillEventBundle/migrations/Version20241104135957.php @@ -9,7 +9,7 @@ declare(strict_types=1); * the LICENSE file that was distributed with this source code. */ -namespace Chill\Migrations\Main; +namespace Chill\Migrations\Event; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; diff --git a/src/Bundle/ChillMainBundle/migrations/Version20241104085341.php b/src/Bundle/ChillMainBundle/migrations/Version20241104085341.php index cb09a632a..d1b44bda8 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20241104085341.php +++ b/src/Bundle/ChillMainBundle/migrations/Version20241104085341.php @@ -23,9 +23,6 @@ final class Version20241104085341 extends AbstractMigration public function up(Schema $schema): void { - $this->addSql('ALTER TABLE activity ALTER privatecomment_comments SET NOT NULL'); - $this->addSql('ALTER TABLE activityreason ALTER name SET NOT NULL'); - $this->addSql('ALTER TABLE activityreasoncategory ALTER name SET NOT NULL'); $this->addSql('ALTER TABLE chill_main_dashboard_config_item ALTER metadata SET NOT NULL'); $this->addSql('ALTER TABLE chill_main_location_type ALTER editablebyusers SET NOT NULL'); $this->addSql('ALTER TABLE chill_person_accompanying_period_work ALTER privatecomment_comments SET NOT NULL'); @@ -49,11 +46,8 @@ final class Version20241104085341 extends AbstractMigration $this->addSql('ALTER TABLE country ALTER name DROP NOT NULL'); $this->addSql('ALTER TABLE chill_person_household_composition_type ALTER label DROP NOT NULL'); $this->addSql('ALTER TABLE customfieldsgroup ALTER options DROP NOT NULL'); - $this->addSql('ALTER TABLE activity ALTER privateComment_comments DROP NOT NULL'); $this->addSql('ALTER TABLE chill_person_resource ALTER createdAt SET NOT NULL'); $this->addSql('ALTER TABLE chill_person_resource ALTER createdBy_id SET NOT NULL'); - $this->addSql('ALTER TABLE activityreasoncategory ALTER name DROP NOT NULL'); - $this->addSql('ALTER TABLE activityreason ALTER name DROP NOT NULL'); $this->addSql('ALTER TABLE customfield ALTER required DROP NOT NULL'); $this->addSql('ALTER TABLE chill_person_relations ALTER isActive SET NOT NULL'); } diff --git a/src/Bundle/ChillMainBundle/migrations/Version20241104142216.php b/src/Bundle/ChillPersonBundle/migrations/Version20241104142216.php similarity index 83% rename from src/Bundle/ChillMainBundle/migrations/Version20241104142216.php rename to src/Bundle/ChillPersonBundle/migrations/Version20241104142216.php index bce990be2..5ad28eba7 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20241104142216.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20241104142216.php @@ -9,7 +9,7 @@ declare(strict_types=1); * the LICENSE file that was distributed with this source code. */ -namespace Chill\Migrations\Main; +namespace Chill\Migrations\Person; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; @@ -23,7 +23,6 @@ final class Version20241104142216 extends AbstractMigration public function up(Schema $schema): void { - $this->addSql('ALTER TABLE chill_main_postal_code ALTER center TYPE geometry(POINT,4326) USING center::geometry(POINT,4326);'); $this->addSql('ALTER TABLE chill_person_marital_status ALTER id TYPE VARCHAR(7)'); $this->addSql('ALTER TABLE chill_person_person DROP cfdata_old'); $this->addSql('ALTER TABLE chill_person_person ALTER maritalstatus_id TYPE VARCHAR(7)'); @@ -36,7 +35,5 @@ final class Version20241104142216 extends AbstractMigration $this->addSql('ALTER TABLE chill_person_person ALTER maritalStatus_id TYPE VARCHAR(10)'); $this->addSql('COMMENT ON COLUMN chill_person_person.cfdata_old IS \'(DC2Type:array)\''); $this->addSql('ALTER TABLE chill_person_marital_status ALTER id TYPE VARCHAR(10)'); - $this->addSql('ALTER TABLE chill_main_postal_code ALTER center TYPE VARCHAR(255)'); - } }