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? *.sw?
build/ build/
db_migrate db_migrate
.gradle/

View File

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

View File

@ -1,7 +1,7 @@
# Package # Package
bin = @["db_migrate"] bin = @["db_migrate"]
version = "0.2.1" version = "0.2.2"
author = "Jonathan Bernard" author = "Jonathan Bernard"
description = "Simple tool to handle database migrations." description = "Simple tool to handle database migrations."
license = "BSD" 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 class DbMigrate {
public static final VERSION = "ALPHA" public static final VERSION = "0.2.1"
public static final def DOC = """\ public static final def DOC = """\
db-migrate (groovy) v${VERSION} db-migrate.groovy v${VERSION}
Usage: Usage:
@ -116,7 +116,7 @@ Options:
return [upFile, downFile] } return [upFile, downFile] }
public static def createMigrationsTable() { public def createMigrationsTable() {
sql.execute(''' sql.execute('''
CREATE TABLE IF NOT EXISTS migrations ( CREATE TABLE IF NOT EXISTS migrations (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,

View File

@ -182,7 +182,7 @@ Options:
""" """
# Parse arguments # 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 = let exitErr = proc(msg: string): void =
fatal("db_migrate: " & msg) fatal("db_migrate: " & msg)