Update for Nim 2.x
This commit is contained in:
parent
9acbc27710
commit
2dbe3ea07c
@ -1,7 +1,7 @@
|
||||
# Package
|
||||
|
||||
bin = @["db_migrate"]
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Simple tool to handle database migrations."
|
||||
license = "BSD"
|
||||
@ -9,4 +9,4 @@ srcDir = "src/main/nim"
|
||||
|
||||
# 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.
|
||||
|
||||
import algorithm, db_postgres, docopt, json, logging, os, sequtils, sets,
|
||||
strutils, tables, times
|
||||
import std/[algorithm, json, logging, os, sequtils, sets, strutils, tables,
|
||||
times]
|
||||
import db_connector/db_postgres
|
||||
import docopt
|
||||
|
||||
type
|
||||
DbMigrateConfig* = object
|
||||
@ -247,7 +249,7 @@ Options:
|
||||
"""
|
||||
|
||||
# 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 =
|
||||
fatal("db_migrate: " & msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user