lib/sql/mysql.rb in dm-migrations-0.9.10 vs lib/sql/mysql.rb in dm-migrations-0.9.11
- old
+ new
@@ -19,9 +19,13 @@
def supports_serial?
true
end
+ def create_table_statement(quoted_table_name)
+ "CREATE TABLE #{quoted_table_name} ENGINE = InnoDB CHARACTER SET #{character_set} COLLATE #{collation}"
+ end
+
# TODO: move to dm-more/dm-migrations
def property_schema_statement(schema)
if supports_serial? && schema[:serial]
statement = "#{schema[:quote_column_name]} serial PRIMARY KEY"
else