Closed (won't fix)
Project:
Drush
Version:
7.x-4.4
Component:
SQL
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2011 at 16:27 UTC
Updated:
5 Nov 2011 at 12:01 UTC
I'm working towards using sql-dump together with git to version the drupal database. Having structure-only tables is a great thing for excluding all cache tables. But there is still one gotcha: The cache tables still have an incrementing AUTO_INCREMENT= setting. This is due to a bug in MySQL ( http://bugs.mysql.com/bug.php?id=44425 ).
It would be great to delete this setting for all structure_tables.
I attach a patch that implements this using sed. This wouldn't work on windows though. Any suggestions?
| Comment | File | Size | Author |
|---|---|---|---|
| drush-no-auto_increment.diff | 610 bytes | torotil |
Comments
Comment #1
torotil commentedComment #2
moshe weitzman commentedI'm not too interested in post-procesing the dump. You can use the drush invoke API to run code after sql-dump finishes. see docs/drush.api.php