mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Process review of migrations
This commit is contained in:
parent
9c918a151c
commit
6ebab8e4fb
@ -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;
|
@ -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');
|
||||
}
|
||||
|
@ -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)');
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user