Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

Fixes#1519

switchn.ObjectType{

casenodes.ObjectType_OBJECT_TABLE:
casenodes.ObjectType_OBJECT_TABLE, nodes.ObjectType_OBJECT_VIEW, nodes.ObjectType_OBJECT_MATVIEW:
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Internally, the sqlc catalog stores views and materialized views as tables.

@kyleconroykyleconroy merged commit f9bbfd9 into mainOct 13, 2023
@kyleconroykyleconroy deleted the kyle/ddl-materialized-views-set-schema branch October 13, 2023 23:16
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
* feat(postgresql): Add ALTER VIEW ... SET SCHEMA
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Materialized Views don't support schema migrations

2 participants

@kyleconroy