Update for Nim 2.x
This commit is contained in:
parent
9acbc27710
commit
2dbe3ea07c
@ -1,7 +1,7 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
bin = @["db_migrate"]
|
bin = @["db_migrate"]
|
||||||
version = "0.3.1"
|
version = "0.3.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"
|
||||||
@ -9,4 +9,4 @@ srcDir = "src/main/nim"
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires: @["nim >= 1.4.0", "docopt >= 0.1.0"]
|
requires: @["nim >= 2.0.0", "docopt >= 0.1.0", "db_connector"]
|
||||||
|
@ -3,8 +3,10 @@
|
|||||||
##
|
##
|
||||||
## Simple tool to manage database migrations.
|
## Simple tool to manage database migrations.
|
||||||
|
|
||||||
import algorithm, db_postgres, docopt, json, logging, os, sequtils, sets,
|
import std/[algorithm, json, logging, os, sequtils, sets, strutils, tables,
|
||||||
strutils, tables, times
|
times]
|
||||||
|
import db_connector/db_postgres
|
||||||
|
import docopt
|
||||||
|
|
||||||
type
|
type
|
||||||
DbMigrateConfig* = object
|
DbMigrateConfig* = object
|
||||||
@ -247,7 +249,7 @@ Options:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
let args = docopt(doc, version = "db-migrate (Nim) 0.3.0\nhttps://git.jdb-software.com/jdb/db-migrate")
|
let args = docopt(doc, version = "db-migrate (Nim) 0.3.2\nhttps://git.jdb-software.com/jdb/db-migrate")
|
||||||
|
|
||||||
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