Title: Materialized Views don't support schema migrations · Issue #1519 · sqlc-dev/sqlc · GitHub
Open Graph Title: Materialized Views don't support schema migrations · Issue #1519 · sqlc-dev/sqlc
X Title: Materialized Views don't support schema migrations · Issue #1519 · sqlc-dev/sqlc
Description: Version 1.12.0 What happened? The following migrations result in sqlc believing the materialized view exists in the main public schema, when it has in fact moved I am running sqlc off the main branch. -- migration 1: CREATE MATERIALIZED ...
Open Graph Description: Version 1.12.0 What happened? The following migrations result in sqlc believing the materialized view exists in the main public schema, when it has in fact moved I am running sqlc off the main bran...
X Description: Version 1.12.0 What happened? The following migrations result in sqlc believing the materialized view exists in the main public schema, when it has in fact moved I am running sqlc off the main bran...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1519
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Materialized Views don't support schema migrations","articleBody":"### Version\r\n\r\n1.12.0\r\n\r\n### What happened?\r\n\r\nThe following migrations result in sqlc believing the materialized view exists in the main public schema, when it has in fact moved\r\n\r\nI am running sqlc off the main branch.\r\n\r\n```sql\r\n-- migration 1:\r\nCREATE MATERIALIZED VIEW something AS\r\nselect * from events\r\nwhere event_type = 'sale'\r\norder by created_at desc;\r\n\r\n\r\n-- migration 2:\r\ncreate schema computed_tables;\r\nalter materialized view \"something\" set schema \"computed_tables\";\r\n\r\n\r\n-- query:\r\n-- name: SomeQuery :many\r\nselect id from \"computed_tables\".\"something\";\r\n```\r\n\r\n### Relevant log output\r\n\r\n_No response_\r\n\r\n### Database schema\r\n\r\n_No response_\r\n\r\n### SQL queries\r\n\r\n_No response_\r\n\r\n### Configuration\r\n\r\n_No response_\r\n\r\n### Playground URL\r\n\r\nhttps://play.sqlc.dev/p/7475c4ff0c2d81393cd0baa57ede84f0fa0af5bd7ef4885f68450adde9f01b17\r\n\r\n### What operating system are you using?\r\n\r\nmacOS\r\n\r\n### What database engines are you using?\r\n\r\nPostgreSQL\r\n\r\n### What type of code are you generating?\r\n\r\nGo","author":{"url":"https://github.com/malonehedges","@type":"Person","name":"malonehedges"},"datePublished":"2022-03-31T04:44:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1519/sqlc/issues/1519"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7ee56b3c-c72f-7124-9442-768809db521a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D046:300776:421C98:580C11:6A5180F4 |
| html-safe-nonce | 92e6bbdb25254ec29d9bdaaa4d1e5be5474decfa6e23b6e97cdf482c0586f78a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDQ2OjMwMDc3Njo0MjFDOTg6NTgwQzExOjZBNTE4MEY0IiwidmlzaXRvcl9pZCI6IjIzNTMwOTk4Mjc0ODU3MDQ0MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 86073ad07674e6dd7f47a52a2b32da3faddc932e350fcec1e9e935858ad47748 |
| hovercard-subject-tag | issue:1187490926 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/1519/issue_layout |
| twitter:image | https://opengraph.githubassets.com/348069ff1309c29f7806d0ae54dadaab4144d8c9ba536951eb1411ef39e9d6a1/sqlc-dev/sqlc/issues/1519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/348069ff1309c29f7806d0ae54dadaab4144d8c9ba536951eb1411ef39e9d6a1/sqlc-dev/sqlc/issues/1519 |
| og:image:alt | Version 1.12.0 What happened? The following migrations result in sqlc believing the materialized view exists in the main public schema, when it has in fact moved I am running sqlc off the main bran... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | malonehedges |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d01c62704ef24df49056c63892a149b775e1353d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width