null+****@clear*****
null+****@clear*****
Thu Jun 28 12:02:36 JST 2012
SHIMADA Koji 2012-06-06 21:47:22 +0900 (Wed, 06 Jun 2012) New Revision: 27c94c21b67bb176962622390d8ff1be56bbc3bd https://github.com/logaling/logaling-command/commit/27c94c21b67bb176962622390d8ff1be56bbc3bd Merged 7228757: Merge pull request #60 from logaling/refactor-structure Log: Organize line remove existing table Modified files: lib/logaling/glossary_db.rb Modified: lib/logaling/glossary_db.rb (+3 -5) =================================================================== --- lib/logaling/glossary_db.rb 2012-06-05 17:25:20 +0900 (abc6252) +++ lib/logaling/glossary_db.rb 2012-06-06 21:47:22 +0900 (2215838) @@ -344,11 +344,9 @@ module Logaling def remove_schema Groonga::Schema.define do |schema| - schema.remove_table("configurations") if Groonga["configurations"] - schema.remove_table("translations") if Groonga["translations"] - schema.remove_table("glossaries") if Groonga["glossaries"] - schema.remove_table("glossary_sources") if Groonga["glossary_sources"] - schema.remove_table("terms") if Groonga["terms"] + %w(configurations translations glossaries glossary_sources terms).each do |table| + schema.remove_table(table) if Groonga[table] + end end end -------------- next part -------------- An HTML attachment was scrubbed... 下載