Skip to content

Instantly share code, notes, and snippets.

@alexcrownus
Forked from MarkyMarkMcDonald/create_migration.sh
Created August 24, 2020 22:21
Show Gist options
  • Save alexcrownus/5a4e762034d16911268bb3cbdac99653 to your computer and use it in GitHub Desktop.
Save alexcrownus/5a4e762034d16911268bb3cbdac99653 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