Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DDLExportConfiguration.respectOrder flags #9434

Closed
lukaseder opened this issue Oct 23, 2019 · 0 comments

Comments

@lukaseder
Copy link
Member

@lukaseder lukaseder commented Oct 23, 2019

When exporting Meta to DDL using Meta.ddl(), we could use some new flags that govern whether we want to respect the order of items in the export script. For example, if the Meta implementation maintains some internal order, we would perhaps be able to reproduce that order again:

create schema s2;
create schema s1;

Some reordering will always be necessary as we don't remember the exact set of ALTER statements (yet). But things we might want to keep in order (or not), include:

  • respectCatalogOrder: Catalogs (default false)
  • respectSchemaOrder: Schemas (default false)
  • respectTableOrder: Schemas (default false)
  • respectColumnOrder: Schemas (default true)
  • respectConstraintOrder: Schemas (default false)
  • respectIndexOrder: Schemas (default false)
  • respectSequenceOrder: Schemas (default false)
@lukaseder lukaseder added this to the Version 3.13.0 milestone Oct 23, 2019
@lukaseder lukaseder added this to To do in 3.13 DDL interpretation via automation Oct 23, 2019
@lukaseder lukaseder changed the title Add DDLExportFormat.respectOrder flags Add DDLExportConfiguration.respectOrder flags Oct 23, 2019
@lukaseder lukaseder self-assigned this Oct 23, 2019
@lukaseder lukaseder closed this Oct 23, 2019
3.13 DDL interpretation automation moved this from To do to Done Oct 23, 2019
@lukaseder lukaseder added the R: Fixed label Oct 23, 2019
@lukaseder lukaseder reopened this Oct 23, 2019
3.13 DDL interpretation automation moved this from Done to In progress Oct 23, 2019
@lukaseder lukaseder closed this Oct 23, 2019
3.13 DDL interpretation automation moved this from In progress to Done Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.