[Flow] doctrine:migrate fail after installing TYPO3.Media
Aske Ertmann
aske at moc.net
Mon Feb 16 11:05:43 CET 2015
Hi Patric
If you already have the table you cannot run the migration afterwards.
Seems like you have run a doctrine:update before a doctrine:migrate, so the
migration hasn't been executed and thus not marked as so.
You can mark a specific migration executed independently using the commands.
Hope it helps.
Cheers,
Aske
On Mon, Feb 16, 2015 at 10:28 AM, Patric Eckhart <mail at patriceckhart.com>
wrote:
> Hey,
>
> I have installed the TYPO3.Media Package. It works fine, the images a
> rendered.
>
> But when I run ./flow doctrine:migrate I got an error:
> An exception occurred while executing 'CREATE TABLE
> typo3_media_domain_model_image (flow3_persistence_identifier VARCHAR(40)
> NOT NULL, resource VARCHAR(40) DEFAULT NULL, title VARCHAR(255) DEFAULT
> NULL, width INT DEFAULT NULL, height INT DEFAULT NULL, type INT DEFAULT
> NULL, imagevariants LONGTEXT DEFAULT NULL COMMENT '(DC2Type:array)',
> INDEX IDX_7FA2358DBC91F416 (resource), PRIMARY
> KEY(flow3_persistence_identifier)) ENGINE = InnoDB':
>
> SQLSTATE[42S01]: Base table or view already exists: 1050 Table
> 'typo3_media_domain_model_image' already exists
>
> All tables are utf8_unicode_ci
>
> /flow doctrine:update works.
>
> I have tried ./flow doctrine:migrationgenerate, then mv the Migration File
> and run :migrate again. But it does not work.
>
> Thank you for your answers
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
More information about the Flow
mailing list