Closed (outdated)
Project:
Demonstration site (Sandbox / Snapshot)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2008 at 05:41 UTC
Updated:
26 Dec 2017 at 20:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
robloachThis patch saves and loads the db_prefix with the .info file.
Comment #2
sunerm - just add db_prefix to the .info file is sufficient for you? Does this work already? And, how is this information used by the profile? Does it replace the manually supplied db_prefix upon install?
Comment #3
robloachHaven't had a hack at it yet. It would need the table prefix, and then the installer would rewrite the settings.php with what the database dump used for the table prefix. Not quite sure if it works yet. If you have a hack at it, wicked! ;-)
Comment #4
robloachAlthough having the database prefix in the info file is handy (patch updated to DRUPAL-6--1), it won't work for Demonstration Site Install Profile because Drupal has you create the database before configuring the install profile. We don't know which database dump the person will be using at the time that the database configuration screen.
I believe the way around this would be to abstract the database prefix out of the MySQL dump file itself in Demonstration Site module and have it inject it back in on restore. This way, you could restore to database dumps with different database prefixes, even when the site's prefix is different.
Thanks!
Comment #5
Leeteq commentedEdit: sorry, wrong issue, but moving to 8.x anyway :P
Comment #6
anybodyFor Drupal 7 the latest .dev - Version works fine for me. Just as hint if you have any problems with broken dumps.
Comment #7
gaurav.kapoor commentedComment #8
gaurav.kapoor commented