From ba4411482ea53f758bca2f1253c3075df4415063 Mon Sep 17 00:00:00 2001 From: NicoDucou Date: Thu, 21 Mar 2024 11:42:02 +0100 Subject: [PATCH] Migrations: Social: fix commit fbc48ab0 that adds comment field in the entity but not in the table creation on migration --- src/CoreBundle/Migrations/Schema/V200/Version20170525122900.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20170525122900.php b/src/CoreBundle/Migrations/Schema/V200/Version20170525122900.php index 6918d27981d..2b2448bef17 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20170525122900.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20170525122900.php @@ -79,7 +79,7 @@ public function up(Schema $schema): void if (false === $schema->hasTable('personal_file')) { $this->addSql( - 'CREATE TABLE IF NOT EXISTS personal_file (id INT AUTO_INCREMENT NOT NULL, resource_node_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, UNIQUE INDEX UNIQ_BD95312D1BAD783F (resource_node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB ROW_FORMAT = DYNAMIC;' + 'CREATE TABLE IF NOT EXISTS personal_file (id INT AUTO_INCREMENT NOT NULL, resource_node_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, comment LONGTEXT DEFAULT NULL, UNIQUE INDEX UNIQ_BD95312D1BAD783F (resource_node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB ROW_FORMAT = DYNAMIC;' ); $this->addSql( 'ALTER TABLE personal_file ADD CONSTRAINT FK_BD95312D1BAD783F FOREIGN KEY (resource_node_id) REFERENCES resource_node (id) ON DELETE CASCADE;'