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..
Hello, I have a problem with the propel:install, I have made my changes to an specific xml file, for
Hello, I have a problem with the propel:install, I have made my changes to an specific xml file, for adding a new column to the spy_users table, but when I run the console proper:install It says that there is nothing new to migrate and when I look at the xml file which I made the change and saved, it is now gone.
Comments
-
what file did you edit? if you edit a merged file it will be overridden.
0 -
spy_user.schema.xml, im editing the users schema to add a new column.
So what I have to do is merge the file and then run propel:install? How can I properly merge the file?
Thanks in advance.0 -
you have to add/modify file in src/Pyz/Zed/<>/Persistence/Propel/Schema. File needs to end with .schema.xml
0 -
then when you run propel:install it will among other things run merge of core schemas and project level schemas. Result will be in src/ORM/Propel/<>/schema and that schema will be executed. If you modify schema in src/ORM/Propel/<>/schema it will be overriden next time you run propel:install
0 -
so to add a column in spy_user.schema.xml you need to create a folder in your project i.e. src/Pyz/User/Persistence/Propel/Schema and add spy_user.schema.xml to it, with the column you want to add. Then you need to run propel:install
0 -
Did you go through the bootcamp (https://training.spryker.com/courses/developer-bootcamp) @U01V5MCB6AW ? It is free and gives you basics for working with Spryker.
0 -
Sorry for the late reply, I went through documentation and did as you said in the upper comments, added the same folder structure and the same xml file containing only the new column, then run the propel:install and it worked!
Thank you so much!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
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random