Incrementing version for Nim and Groovy implementations.
This commit is contained in:
parent
5b9de9b10f
commit
9b3e7b4d26
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ nimcache/
|
|||||||
*.sw?
|
*.sw?
|
||||||
build/
|
build/
|
||||||
db_migrate
|
db_migrate
|
||||||
|
.gradle/
|
||||||
|
@ -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'
|
||||||
|
@ -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
1
settings.gradle
Normal file
@ -0,0 +1 @@
|
|||||||
|
rootProject.name = "db-migrate.groovy"
|
@ -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,
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user