diff options
author | Julien Dessaux | 2021-10-25 18:47:56 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-25 18:47:56 +0200 |
commit | 8194eac0506c0c40eaad208213c1e3f2ba7d1ce8 (patch) | |
tree | 14fa6d33f74e760873fee18cb67582a4acc82e1f /src | |
parent | Added a functionning url shortening service (diff) | |
download | short-8194eac0506c0c40eaad208213c1e3f2ba7d1ce8.tar.gz short-8194eac0506c0c40eaad208213c1e3f2ba7d1ce8.tar.bz2 short-8194eac0506c0c40eaad208213c1e3f2ba7d1ce8.zip |
Moved database in a data folder
Diffstat (limited to 'src')
-rw-r--r-- | src/short.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |