Skip to content

Commit 28846c9

Browse files
authored
Merge pull request #24 from dirtyhenry/update-sqlite-hook
feat: update SQLite hook types
2 parents 7b59489 + 596bdab commit 28846c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Resources/SampleHooks/didFinish.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ fi
1818
# # Create the table if it doesn't exist
1919
# sqlite3 "$DATABASE" <<EOF
2020
# CREATE TABLE IF NOT EXISTS $TABLE (
21-
# start_date TEXT,
22-
# end_date TEXT,
23-
# duration INTEGER,
21+
# id INTEGER PRIMARY KEY AUTOINCREMENT,
22+
# start TEXT NOT NULL,
23+
# end TEXT NOT NULL,
2424
# message TEXT
2525
# );
2626
# EOF
2727

2828
# # Insert the 4 arguments into the table
2929
# sqlite3 "$DATABASE" <<EOF
30-
# INSERT INTO $TABLE (start_date, end_date, duration, message)
31-
# VALUES ('$1', '$2', '$3', '$4');
30+
# INSERT INTO $TABLE (start, end, message)
31+
# VALUES ('$1', '$2', '$4');
3232
# EOF
3333

3434
# Say with an Italian accent that the Pomodoro finished.

0 commit comments

Comments
 (0)