]> git.mjollnir.org Git - moodle.git/commitdiff
add postgress model for search
authordiml <diml>
Fri, 7 Sep 2007 18:56:17 +0000 (18:56 +0000)
committerdiml <diml>
Fri, 7 Sep 2007 18:56:17 +0000 (18:56 +0000)
search/db/postgres7.sql [new file with mode: 0644]

diff --git a/search/db/postgres7.sql b/search/db/postgres7.sql
new file mode 100644 (file)
index 0000000..8abc303
--- /dev/null
@@ -0,0 +1,11 @@
+CREATE TABLE prefix_search_documents (
+   id SERIAL8 PRIMARY KEY,
+   docid int4 NOT NULL,
+   doctype varchar(12) NOT NULL DEFAULT 'none',
+   title varchar(100) NOT NULL default '',
+   url varchar(250) NOT NULL default '',
+   docdate timestamp NOT NULL,
+   updated timestamp NOT NULL DEFAULT NOW(),
+   courseid int4,
+   groupid int4
+);