Prevented sql_flush to flush views
Use table_names instead of get_table_list in migrations