Fixes for MySQL compatibility

This commit is contained in:
Alexey Verkhovsky 2005-09-28 02:03:28 +00:00
parent 223a1f9de3
commit 61776995b6
2 changed files with 2 additions and 2 deletions

View file

@ -4,6 +4,6 @@ CREATE TABLE wiki_references (
updated_at <%= @datetime %> NOT NULL, updated_at <%= @datetime %> NOT NULL,
page_id INTEGER NOT NULL, page_id INTEGER NOT NULL,
referenced_name VARCHAR NOT NULL, referenced_name VARCHAR(60) NOT NULL,
link_type CHAR(1) NOT NULL link_type CHAR(1) NOT NULL
) <%= create_options %>; ) <%= create_options %>;

View file

@ -183,7 +183,7 @@ File.open(OPTIONS[:outfile], 'w') { |outfile|
puts "Web #{web_name} has #{web.pages.keys.size} pages" puts "Web #{web_name} has #{web.pages.keys.size} pages"
web.pages.each_pair do |page_name, page| web.pages.each_pair do |page_name, page|
outfile.puts "BEGIN TRANSACTION;" outfile.puts "BEGIN;"
outfile.puts sql_insert(:pages, { outfile.puts sql_insert(:pages, {
:id => next_id(:page), :id => next_id(:page),