Incrementing version for Nim and Groovy implementations.
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -2,3 +2,4 @@ nimcache/ | ||||
| *.sw? | ||||
| build/ | ||||
| db_migrate | ||||
| .gradle/ | ||||
|   | ||||
| @@ -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' | ||||
|   | ||||
| @@ -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
									
								
							
							
						
						
									
										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 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, | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user