You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Export options for auto_increment and DEFINER #2516
An SQL export writes AUTO_INCREMENT=<n> into CREATE TABLE and a DEFINER= clause into every view, trigger and routine. Both make the file server-specific: the auto-increment value is noise in a schema diff, and the DEFINER names a user that does not exist on the target, so the import fails outright.
Proposed solution
An Exclude AUTO_INCREMENT option in the SQL export, on by default for a structure-only export.
An Ignore DEFINER option that drops the clause, letting the importing user own the object.
Both remembered with the rest of the format's options.
Activity