Merging fails with table prefixes

ramsalt - February 25, 2009 - 21:44
Project:Database Scripts
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed
Description

I have had the priviledge to try dbscripts out for some days now to see if it fits with my new version control based Drupal strategy, and it does perfectly. It's a fantastic idea, and I just see one big potential in maintaining Drupal sites and distributions with dbscripts. However, after struggling to understand the concept because of some lacking documentation (which is perfectly understandable), I have a question about merging. The problem is that the merged production version doesn't preserve it's contents. When I look in the production/data/node.sql before merge I can see the nodes generated from production, but after merge the same file looks exactly the same as development/data/node.sql. Is this right? It means that content which are generated in production are wiped out.

What I've done is stepwise:

  1. dump.php last-merge
  2. Moved the content to production place, and populated database with restore.php last-merge
  3. Then added some content in production version and some settings config in development
  4. Then I dump.php production min on production and downloaded it to databases dir in development area
  5. Then merge.php
  6. Then import the changes with restore.php production min

Result: Content changes done on production are not preserved.

Is this the right steps? Or am I missing something?

Thanks!

#1

ceardach - February 25, 2009 - 21:54

Debugging dbscripts is *really* hard. So, if you could, may you send me your config.inc, config.references.inc, and all three of your database files (you could tar them up). If you can't upload them here, you can email them to me, kathleen.murtagh AT gmail.

#2

ramsalt - February 26, 2009 - 11:35

Wow, did a clean D6 install without table prefixes and now it works much more like it should.

#3

ceardach - February 26, 2009 - 16:31

Oh, that's really good information! So this bug is caused by #384390: Table prefixes not supported ?

If you could, save your version with the table prefixes. After I fix the issue with table prefixes, could you test it?

#4

ramsalt - February 26, 2009 - 20:35

Sure! I have different setups now prepared for testing dbscripts. I will also test some more to completely understand the complexity of dbscripts, but it is starting to look pretty amazing when it's working.

#5

ceardach - February 28, 2009 - 23:24
Title:Merging overwrites production» Merging fails with table prefixes
Status:active» postponed

We'll get back to this issue once I've fixed #384390: Table prefixes not supported

 
 

Drupal is a registered trademark of Dries Buytaert.