fordfrog / apgdiff

Another PostgreSQL Diff Tool
http://www.apgdiff.com
MIT License
353 stars 138 forks source link

Dedupe `CREATE SCHEMA PUBLIC` statements #265

Closed jschaf closed 4 years ago

jschaf commented 4 years ago

Previously, the CreateSchemaParser blindly added a schema. Instead, only add the schema if it's not public. For additional safety, throw an error if a user tries to add a schema that already exists.

Fixes #264

jschaf commented 4 years ago

Meh, giving up.