forked from shoorick/mojowka
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed newlines in initialization script. Added field "text" into tabl…
…e "user".
- Loading branch information
Showing
2 changed files
with
29 additions
and
18 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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
BEGIN TRANSACTION; | ||
CREATE TABLE "page" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "title" TEXT, "text" TEXT); | ||
INSERT INTO "page" VALUES(1,'Index','First page\n\nLightweight wiki *mojowka* based on top of "Mojolicious::Lite":http://search.cpan.org/dist/Mojolicious\n\n"Registered user":/login can change content of pages.'); | ||
INSERT INTO "page" VALUES(2,'Sitemap','* "First page of site":/\n* "This page":/sitemap'); | ||
CREATE TABLE "user" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "login" TEXT, "password" TEXT); | ||
INSERT INTO "user" VALUES(1,'admin','21232f297a57a5a743894a0e4a801fc3'); | ||
INSERT INTO "page" VALUES(1,'Index','First page | ||
Lightweight wiki *mojowka* based on top of "Mojolicious::Lite":http://search.cpan.org/dist/Mojolicious | ||
"Registered user":/login can change content of pages.'); | ||
INSERT INTO "page" VALUES(2,'Sitemap','* "First page of site":/ | ||
* "This page":/sitemap'); | ||
CREATE TABLE "user" ("id" INTEGER PRIMARY KEY AUTOINCREMENT, "login" TEXT, "password" TEXT, "text" TEXT); | ||
INSERT INTO "user" VALUES(1,'admin','21232f297a57a5a743894a0e4a801fc3','Administrator of site. He can edit pages.'); | ||
CREATE UNIQUE INDEX "page_title" on page (title ASC); | ||
CREATE UNIQUE INDEX "user_login" on user (login ASC); | ||
COMMIT; |
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