-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from elkinaguas/configure-database-usage
Configure database usage
- Loading branch information
Showing
22 changed files
with
1,139 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
PRAGMA user_version = 1; | ||
CREATE TABLE IF NOT EXISTS commands ( | ||
id TEXT PRIMARY KEY, | ||
creation_date TEXT NOT NULL, | ||
last_modif_date TEST NOT NULL, | ||
command TEXT NOT NULL, | ||
description TEXT NOT NULL | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS tags ( | ||
id TEXT PRIMARY KEY, | ||
creation_date TEXT NOT NULL, | ||
last_modif_date TEXT NOT NULL, | ||
tag TEXT NOT NULL | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS commands_tags ( | ||
command_id TEXT, | ||
tag_id TEXT, | ||
PRIMARY KEY (command_id, tag_id), | ||
FOREIGN KEY (command_id) REFERENCES commands(id), | ||
FOREIGN KEY (tag_id) REFERENCES tags(id) | ||
); |
File renamed without changes.
Oops, something went wrong.