Skip to content

Instantly share code, notes, and snippets.

@MarkyMarkMcDonald
Last active August 24, 2020 22:21
Show Gist options
  • Save MarkyMarkMcDonald/d72219b455bb2f689126 to your computer and use it in GitHub Desktop.
Save MarkyMarkMcDonald/d72219b455bb2f689126 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" > "`dirname $0`/../src/main/resources/db/migrations/V`date +%s`__$1.sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment