Please disable your adblock and script blockers to view this page

Fabian Lindfors


user_id
Postgres
A.users


’d

No matching tags

No matching tags

No matching tags

No matching tags

No matching tags

Positivity     41.00%   
   Negativity   59.00%
The New York Times
SOURCE: https://fabianlindfors.se/blog/schema-migrations-in-postgres/
Write a review: Hacker News
Summary

Each version of the schema will have a set of views that never change. This way we can perform changes to the underlying table whilst maintaing a stable schema for clients.The reason this technique isn’t commonly referenced might just be that it’s dumb, but that shouldn’t stop us from exploring it!Let’s test this pattern out with a deceptively simple migration: renaming a column.

As said here by