Skip to content

Commit 9eed158

Browse files
author
Hiemanshu Sharma
committed
Add database setup script for fortunes
1 parent f72400f commit 9eed158

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

database/fortunes.sql

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
DROP TABLE IF EXISTS fortunes;
2+
3+
CREATE TABLE "fortunes" (
4+
"id" integer NOT NULL,
5+
"message" text NOT NULL,
6+
PRIMARY KEY (id)
7+
);
8+
9+
INSERT INTO fortunes VALUES (1, 'fortune: No such file or directory');
10+
INSERT INTO fortunes VALUES (2, 'A computer scientist is someone who fixes things that aren''t broken.');
11+
INSERT INTO fortunes VALUES (3, 'After enough decimal places, nobody gives a damn.');
12+
INSERT INTO fortunes VALUES (4, 'A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1');
13+
INSERT INTO fortunes VALUES (5, 'A computer program does what you tell it to do, not what you want it to do.');
14+
INSERT INTO fortunes VALUES (6, 'Emacs is a nice operating system, but I prefer UNIX. — Tom Christaensen');
15+
INSERT INTO fortunes VALUES (7, 'Any program that runs right is obsolete.');
16+
INSERT INTO fortunes VALUES (8, 'A list is only as strong as its weakest link. — Donald Knuth');
17+
INSERT INTO fortunes VALUES (9, 'Feature: A bug with seniority.');
18+
INSERT INTO fortunes VALUES (10, 'Computers make very fast, very accurate mistakes.');
19+
INSERT INTO fortunes VALUES (11, '<script>alert("This should not be displayed in a browser alert box.");</script>');
20+
INSERT INTO fortunes VALUES (12, 'フレームワークのベンチマーク');

0 commit comments

Comments
 (0)