summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-25 18:47:56 +0200
committerJulien Dessaux2021-10-25 18:47:56 +0200
commit8194eac0506c0c40eaad208213c1e3f2ba7d1ce8 (patch)
tree14fa6d33f74e760873fee18cb67582a4acc82e1f
parentAdded a functionning url shortening service (diff)
downloadshort-8194eac0506c0c40eaad208213c1e3f2ba7d1ce8.tar.gz
short-8194eac0506c0c40eaad208213c1e3f2ba7d1ce8.tar.bz2
short-8194eac0506c0c40eaad208213c1e3f2ba7d1ce8.zip
Moved database in a data folder
-rw-r--r--data/.keep0
-rw-r--r--src/short.nim2
2 files changed, 1 insertions, 1 deletions
diff --git a/data/.keep b/data/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/data/.keep
diff --git a/src/short.nim b/src/short.nim
index 959e5a7..df26552 100644
--- a/src/short.nim
+++ b/src/short.nim
@@ -15,7 +15,7 @@ var db {.threadvar.}: DbConn
proc initDB() {.raises: [SqliteError].}=
if not db.isOpen():
- db = openDatabase("short.db")
+ db = openDatabase("data/short.db")
if not db.Migrate():
echo "Failed to migrate database schema"
quit 1