Skip to content

Do not dump a view as a table in sqlite3, mysql and mysql2 adapters#21609

Merged
jeremy merged 2 commits intorails:masterfrom
kamipo:do_not_dump_view_as_table
Sep 19, 2015
Merged

Do not dump a view as a table in sqlite3, mysql and mysql2 adapters#21609
jeremy merged 2 commits intorails:masterfrom
kamipo:do_not_dump_view_as_table

Conversation

@kamipo
Copy link
Member

@kamipo kamipo commented Sep 13, 2015

Related with #21601.

Now in sqlite3, mysql and mysql2 adapters, SchemaDumper dump a view as
a table. It is incorrect behavior. This change excludes a view in schema.rb.

Now in sqlite3, mysql and mysql2 adapters, SchemaDumper dump a view as
a table. It is incorrect behavior. This change excludes a view in
schema.rb.
@rails-bot
Copy link

r? @kaspth

(@rails-bot has picked a reviewer for you, use r? to override)

@yui-knk
Copy link
Contributor

yui-knk commented Sep 13, 2015

@kamipo Thanks! BTW maybe Rails team say you "to squash commits" :)

@yui-knk
Copy link
Contributor

yui-knk commented Sep 14, 2015

This PR looks good to me:)

All type of adapters should return array of views, so define views method as an interface is reasonable.
And only SchemaDumper#tables cares connection.views is also good! because Adapter#tables should care about views is discussed on #21601.

I want to use views method to implement tables(views: bool), so please merge this before #21601 is merged.

@senny senny self-assigned this Sep 14, 2015
@jeremy jeremy merged commit ad4654f into rails:master Sep 19, 2015
jeremy added a commit that referenced this pull request Sep 19, 2015
Do not dump a view as a table in sqlite3, mysql and mysql2 adapters
@kamipo kamipo deleted the do_not_dump_view_as_table branch September 20, 2015 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants