Incrementing version for Nim and Groovy implementations.

This commit is contained in:
Jonathan Bernard 2016-04-11 19:49:29 -05:00
parent 5b9de9b10f
commit 9b3e7b4d26
6 changed files with 13 additions and 5 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ nimcache/
*.sw?
build/
db_migrate
.gradle/

View File

@ -2,9 +2,15 @@ apply plugin: 'groovy'
apply plugin: 'application'
group = 'com.jdblabs'
version = '0.2.2'
mainClassName = 'com.jdblabs.dbmigrate.DbMigrate'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile localGroovy()
compile 'ch.qos.logback:logback-classic:1.1.3'

View File

@ -1,7 +1,7 @@
# Package
bin = @["db_migrate"]
version = "0.2.1"
version = "0.2.2"
author = "Jonathan Bernard"
description = "Simple tool to handle database migrations."
license = "BSD"

1
settings.gradle Normal file
View File

@ -0,0 +1 @@
rootProject.name = "db-migrate.groovy"

View File

@ -12,10 +12,10 @@ import org.slf4j.LoggerFactory
public class DbMigrate {
public static final VERSION = "ALPHA"
public static final VERSION = "0.2.1"
public static final def DOC = """\
db-migrate (groovy) v${VERSION}
db-migrate.groovy v${VERSION}
Usage:
@ -116,7 +116,7 @@ Options:
return [upFile, downFile] }
public static def createMigrationsTable() {
public def createMigrationsTable() {
sql.execute('''
CREATE TABLE IF NOT EXISTS migrations (
id SERIAL PRIMARY KEY,

View File

@ -182,7 +182,7 @@ Options:
"""
# Parse arguments
let args = docopt(doc, version = "db-migrate 0.2.1")
let args = docopt(doc, version = "db-migrate 0.2.2")
let exitErr = proc(msg: string): void =
fatal("db_migrate: " & msg)