If I develop my Drupal site on my local machine using a database dump on Day 1 and it takes me 3 days to develop my latest feature how can I upload it to the live site and add the database changes I mad locally to the live database without losing 3 days of live data?

Comments

yelvington’s picture

It depends on what you mean by "feature." Your title refers to a theme. A theme is not in the database, so you simply copy the files.

ha5bro’s picture

If you're making modifications to modules as a part of you're new theme (either core or contrib modules - meaning anything from urls to blocks, from views to new content types) then you're getting into tricky territory. The good news is lots of people do it. But once you start making changes to modules you're not just changing the theme, you're changing the database as well.

The terminology you should be using is something like syncing a staging database to a live server.

You might want to start by looking at this thread http://groups.drupal.org/node/54158.

i-sibbot’s picture

The way I read it, he means module when he says feature? If so, all the db stuff he's saying should be performed by the module install.

If his module or feature requires node contents then maybe node import module? Import the contents to nodes once the "feature" is active?

Who knows.!?! :'|

limbovski’s picture

To clarify - at this point,I don't explicitly mean module but I don't know where development will take me I may need to so this eventually also.

So I probably do mean - 'syncing a staging database to a live server'.

I'll read the thread mentioned above and see what I can dig up.