THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


I've updated my model and I need to rebuild database with command line. Is is possible to rebuild database without losing data ?

Offline


You have first to save the data (not the structure, juste the data) already present in your DB. You can then recreate it, and thereafter re-insert the data from your backup.

Last edited by roadster31 (28-05-2014 15:18:17)


OpenStudio Toulouse

Offline


ok when my module is basen on few models and i've made modification in every model. I have to dump data from every table. Then manually update new database tables. Then insert dumped data. Am i correct. In complex project this isn't very good. There is really no command that update schema without losing data ?. For example in doctrine there is command that update database tables without losing data:

doctrine:schema:update --force

Offline


I'm pretty sure that such command is not available for Propel.


OpenStudio Toulouse

  • manu
  • faï tot petar miladiu

Offline


Propel binary is available in bin folder of Thelia, migration is available with this binary and here is the documentation : http://propelorm.org/documentation/09-migrations.html

You can test it in Thelia but use it with caution. The binary must be called from your module directory.


http://doc.thelia.net/
http://thelia.net/modules
http://raynaud.io
PGP public Key : 0xC6E546A6