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

sylius.products table already exits #60

Open
hsharghi opened this issue Dec 9, 2019 · 5 comments
Open

sylius.products table already exits #60

hsharghi opened this issue Dec 9, 2019 · 5 comments

Comments

@hsharghi
Copy link

hsharghi commented Dec 9, 2019

Trying to install the plug-in, when running

php bin/console doctrine:migrations:diff

getting this error

In SchemaException.php line 108:
                                                                
  The table with name 'shop.sylius_product' already exists.  

What am I doing wrong?

@loevgaard
Copy link
Owner

Not sure what is wrong here, @hsharghi. I would need more context. Have you solved it yourself by now?

@igormukhingmailcom
Copy link
Collaborator

I remember such issue before, when some typo was at mapping information, can't remember details. Probably this one: v2.0.0-beta.3...v2.0.0-beta.4#diff-c3937715d58d1fe585b19a8140712965R10

@hsharghi try to migrate to latest version

@hsharghi
Copy link
Author

Not sure what is wrong here, @hsharghi. I would need more context. Have you solved it yourself by now?

Sorry but couldn't manage to install the plug-in. I'm using Taxons to manage brands. It's not perfect but better than nothing!
How can I give you more context? any logs or something else? let me know

@prawee
Copy link

prawee commented Jan 27, 2020

same me.
try to rename sylius_product table and run this command php bin/console doctrine:migrations:diff again. it's not working with same error.

@joenilson
Copy link

joenilson commented May 21, 2020

I faced the same problem but with other plugins and i make some tests and was a Product.orm.xml file inside a plugin that caused the diff error, i removed it, generated the diff, maked the migration and restored the orm.xml file. Hope it helps.

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

No branches or pull requests

5 participants