Skip to content

Instantly share code, notes, and snippets.

@tommybutler
Last active August 29, 2015 13:58
Show Gist options
  • Save tommybutler/10309408 to your computer and use it in GitHub Desktop.
Save tommybutler/10309408 to your computer and use it in GitHub Desktop.
regenerate a DBIx::Class schema dump
#!/bin/bash
# skeleton code; you will need to customize to suit
# you need to set up your database and install DBIx::Class::Schema::Loader
# along with any DBIC components you use below
cd /var/projects/My/App
dbicdump -o components='["TimeStamp","PassphraseColumn"]' -o dump_directory=./lib My::App::Schema dbi:mysql:dfwpm dfwpm dfwpm '{ AutoCommit => 1 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment