Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration fails on deployment #2

Open
markusguenther opened this issue Nov 27, 2023 · 0 comments · May be fixed by #3
Open

Migration fails on deployment #2

markusguenther opened this issue Nov 27, 2023 · 0 comments · May be fixed by #3

Comments

@markusguenther
Copy link
Member

An exception occurred while executing 'CREATE TABLE flowpack_entityusage_databasestorage_domain_model_entityusage (persistence_object_identifier VARCHAR(40) NOT NULL, usageid VARCHAR(255) NOT NULL, entityid VARCHAR(255) NOT NULL, serviceid VARCHAR(255) NOT NULL, metadata LONGTEXT NOT NULL COMMENT '(DC2Type:flow_json_array)', INDEX entityserviceid (usageid, entityid, serviceid), INDEX serviceindex (serviceid), INDEX usageindex (usageid), INDEX entityindex (entityid), PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB':
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'flowpack_entityusage_databasestorage_domain_model_entityusage' already exists

When deploying the package to a server instance that already has the table for some reason, the migrations (doctrine migrate) fails.

markusguenther added a commit that referenced this issue Nov 27, 2023
@markusguenther markusguenther linked a pull request Nov 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant