From 7ccf6917c811f673bb87e2a64116b48a07a76e0e Mon Sep 17 00:00:00 2001 From: b3yond Date: Fri, 16 Feb 2018 12:02:58 +0100 Subject: [PATCH] create db manually --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index a93b278..cd65181 100644 --- a/README.md +++ b/README.md @@ -95,3 +95,20 @@ python3 ticketfrei.py To log out of the screen session, press "ctrl+a", and then "d". +### Manually creating the database + +Unfortunately, if you want to help developing, you have to create the +database manually for now. + +At the moment, we use a SQLITE3 database. If you are in the repo +directory, just open it with ```sqlitebrowser ticketfrei.sqlite```. +Then execute following SQL to create the tables: + +```sql +CREATE TABLE `user` ( + `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, + `email` TEXT, + `pass_hashed` TEXT, + `enabled` INTEGER +) +```