Skip to content

Instantly share code, notes, and snippets.

@valdineireis
Forked from MarkyMarkMcDonald/create_migration.sh
Last active March 10, 2020 20:36
Show Gist options
  • Save valdineireis/4f61d719da46b1d378db07934e3b7b73 to your computer and use it in GitHub Desktop.
Save valdineireis/4f61d719da46b1d378db07934e3b7b73 to your computer and use it in GitHub Desktop.
Create Flyway migration versioned by timestamp: ./bin/create_migration.sh "Add_Unique_Constraint_To_User_Email"
#!/bin/bash
echo "-- New Migration. Add your SQL code here." > "`dirname $0`/../db/migrations/V`date +%Y%m%d%H%M%S`__$1.sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment