What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
hi, I have another one π I'm getting `Exception: Duplicate table found: spy_au
hi, I have another one π
I'm getting Exception: Duplicate table found: spy_auth_reset_password.
while running propel:install
I am currently trying to update the project to match spryker-shop/suite 1.7, and I might be getting this completely wrong, but it seems to me, that both spryker/auth (required) and spryker/user-reset-password (required by spryker/merchant-user) have this table in their schema, which causes the trouble
Did anyone have similiar problem or could point me what am I doing wrong?
Comments
-
the schemas are merged eventually by propel into one representation, so this is okay. This is also the way how you would extend the existing schemas, introduce new columns, etc.
0 -
I see
what could be the reason for propel:instal trying to create same table again?0 -
never had that before, but theoretically the reason could be f.e. that propel have lost track of the current DB schema version (propel_migration table in your DB) and decided to run full migration again. But the table you had was already there
0 -
Propel also canβt track if certain actions were done manually. F.e. you could have created a table somehow manually and then propel:install was executed
0 -
or, youβve received a migration file after pulling from the repo that one of your collegues has generated. So you end up having 2 migrations that are trying to install the same table
0 -
so any consistency loss between xml schemas + migrations + actual database schema
0 -
I actally managed to "solve" this by removing user-password-reset, merchant-user and every package that requires one of those two from composer.json
0 -
I end up with just src/Orm/Propel/Schema/spy_auth.schema.xml which contains spy_auth_reset_password declaration and everytihing is "fine"
0 -
but I imagine, that once I restore my dependencies I end up with same error as before
0 -
no, this should not happen. Can you confirm that after inclusion of the module and running βpropel:installβ you see the same table mentioned twice?
0 -
sure, give me a minute
0 -
I would suggest to check also your migration files
0 -
Creating Database Adjust propel config for PostgreSQL and missing functions (group_concat) Clean schema directory Copy and merge schema files Build Propel2 classes Propel\Generator\Exception\EngineException - Exception: Duplicate table found: spy_auth_reset_password. in /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Model/Schema.php (298) Command: vendor/bin/console propel:install Trace: #0 /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Manager/AbstractManager.php(438): Propel\Generator\Model\Schema->joinSchemas(Array)
0 -
and I have two files with spy_auth_reset_password
0 -
src/Orm/Propel/Schema/spy_auth.schema.xml
and
src/Orm/Propel/Schema/spy_user_password_reset.schema.xml0 -
interesting. Thanks for letting know, we will need to check that. Itβs not the only case where we have the same table mentioned several times in different modules where propel merges the schemas, but seem not in this case.
0 -
hi guys, see the description https://github.com/spryker/auth
0 -
the same for https://github.com/spryker/auth-mail-connector
0 -
so make sure that you will remove
spryker/auth
andspryker/auth-mail-connector
before starting usingsecurity-gui
anduser-password-reset
0 -
in https://github.com/spryker-shop/suite/blob/1.7/composer.json
I can seeauth
, but cannot seesecurity-gui
0 -
"spryker/merchant-user": "^0.5.0", requires user-password-reset
0 -
so correct me if I misunderstood you
0 -
I cannot use spryker/auth and spryker/user-password-reset at the same time?
0 -
Right. do you need merchant-user? I see the issue now.
0 -
If you want to use
merchant-user
withauth
try to decrease the version ofmerchant-user
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random