Fixes for MySQL compatibility
This commit is contained in:
parent
223a1f9de3
commit
61776995b6
|
@ -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 %>;
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue