lib/sql/sqlite3.rb in dm-migrations-0.9.2 vs lib/sql/sqlite3.rb in dm-migrations-0.9.3
- old
+ new
@@ -6,27 +6,20 @@
def supports_schema_transactions?
true
end
def table(table_name)
- SQL::Table.new(self, table_name)
+ SQL::Sqlite3::Table.new(self, table_name)
end
def recreate_database
DataMapper.logger.info "Dropping #{@uri.path}"
system "rm #{@uri.path}"
# do nothing, sqlite will automatically create the database file
end
def supports_serial?
true
- end
-
- # TODO: move to dm-more/dm-migrations
- def property_schema_statement(schema)
- statement = super
- statement << ' PRIMARY KEY AUTOINCREMENT' if supports_serial? && schema[:serial]
- statement
end
class Table < SQL::Table
def initialize(adapter, table_name)
@columns = []