Skip to content

Instantly share code, notes, and snippets.

@valdineireis
valdineireis / create_migration.sh
Last active March 10, 2020 20:36 — forked from MarkyMarkMcDonald/create_migration.sh
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"