class Jennifer::Mysql::SchemaProcessor
Defined in:
jennifer/adapter/mysql/schema_processor.cr
Instance Method Summary
adapter : Adapter::Base
adapter,
add_column(table, name, opts : Hash)
add_column,
add_foreign_key(from_table, to_table, column, primary_key, name, on_update, on_delete)
add_foreign_key,
add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil)
add_index,
change_column(table, old_name, new_name, opts : Hash)
change_column,
create_table(builder : Migration::TableBuilder::CreateTable)
create_table,
create_view(name, query, silent = true)
create_view,
drop_column(table, name)
drop_column,
drop_foreign_key(from_table, _to_table, name)
drop_foreign_key,
drop_index(table, name)
drop_index,
drop_table(builder : Migration::TableBuilder::DropTable)
drop_table,
drop_view(name, silent = true)
drop_view,
rename_table(old_name : String | Symbol, new_name : String | Symbol)
rename_table
new(adapter)
new
Instance Method Detail
def
column_type(options : Hash)
#
def
rename_table(old_name, new_name)
#