-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing SQL script for functional tests
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
DROP TABLE IF EXISTS test.documents; | ||
CREATE TABLE test.documents | ||
( | ||
id INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT, | ||
group_id INTEGER NOT NULL, | ||
date_added DATETIME NOT NULL, | ||
title VARCHAR(255) NOT NULL, | ||
content TEXT NOT NULL | ||
); | ||
|
||
REPLACE INTO test.documents ( id, group_id, date_added, title, content ) VALUES | ||
( 1, 1, NOW(), 'test one', 'this is my test document number one. also checking search within phrases.' ), | ||
( 2, 1, NOW(), 'test two', 'this is my test document number two' ), | ||
( 3, 2, NOW(), 'another doc', 'this is another group' ), | ||
( 4, 2, NOW(), 'doc number four', 'this is to test groups' ); |