dbsrgits / dbix-class-schema-loader

Official GitHub remote for git.shadowcat.co.uk DBIx-Class-Schema-Loader.git
http://dbix-class.org/
11 stars 34 forks source link

add the `-o omit_view_definitions=1` option to remove the view definitions from server side views #14

Open fobispo-link opened 6 years ago

adherzog commented 6 years ago

+1 for this.

MySQL includes the database name in the view definition, making the view undeployable to a database with a different name (which I do when running tests, for example.)

Right now, I simply redefine the view later in the file, after the md5sum, and that works fine. But I'd like to be able to omit the dumped definition for clarity.