From 89f29e649a4560e959c63df0b6956596fc6541ba Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 17 Aug 2020 08:52:30 +0200 Subject: [PATCH] Move db --- .gitignore | 4 ++-- migration.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 0256955..ae9d7f6 100644 --- a/.gitignore +++ b/.gitignore @@ -195,7 +195,7 @@ pytestdebug.log # Django stuff: *.log local_settings.py -db.sqlite3 +db/ db.sqlite3-journal # Flask stuff: @@ -272,4 +272,4 @@ dmypy.json # End of https://www.toptal.com/developers/gitignore/api/osx,pycharm,python .idea -db/ +static/ diff --git a/migration.py b/migration.py index 23a78ae..b716f61 100644 --- a/migration.py +++ b/migration.py @@ -2,8 +2,8 @@ import sqlite3 def main(): - writefreely = sqlite3.connect("writefreely.db") - db = sqlite3.connect("db.sqlite3") + writefreely = sqlite3.connect("db/writefreely.db") + db = sqlite3.connect("db/db.sqlite3") writefreely_c = writefreely.cursor() db_c = db.cursor() writefreely_c.execute(