提交 d2cc10c2 编写于 作者: J Josh Susser

Oracle needs table to check index existence

上级 dba022f3
......@@ -42,10 +42,10 @@ def self.create_table
end
def self.drop_table
if connection.table_exists?(table_name)
if connection.index_exists?(table_name, "version", :unique => true, :name => index_name)
connection.remove_index(table_name, :name => index_name)
end
if connection.table_exists?(table_name)
connection.drop_table(table_name)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册