]> git.mjollnir.org Git - moodle.git/commitdiff
fixes docdate bad default value format. Was '0', should have been 0.
authordiml <diml>
Fri, 7 Sep 2007 18:54:47 +0000 (18:54 +0000)
committerdiml <diml>
Fri, 7 Sep 2007 18:54:47 +0000 (18:54 +0000)
search/db/mysql.sql [new file with mode: 0644]

diff --git a/search/db/mysql.sql b/search/db/mysql.sql
new file mode 100644 (file)
index 0000000..7e1aabe
--- /dev/null
@@ -0,0 +1,12 @@
+CREATE TABLE IF NOT EXISTS `prefix_search_documents` (
+  `id` int(11) NOT NULL auto_increment,
+  `docid` int(11) NOT NULL,
+  `doctype` varchar(12) NOT NULL default 'none',
+  `title` varchar(255) NOT NULL default '',
+  `url` varchar(255) NOT NULL default '',
+  `docdate` timestamp NOT NULL default 0,
+  `updated` timestamp NOT NULL default CURRENT_TIMESTAMP,
+  `courseid` int(11) NOT NULL default 0,
+  `groupid` int(11) NOT NULL default 0,
+  PRIMARY KEY  (`id`)
+) ENGINE=MyISAM AUTO_INCREMENT=1;