Comments (5)
That's a good catch! I suspect adding an order during update could make it deterministic, otherwise sorting application-side is fine too.
from safe-ecto-migrations.
Ah thanks for confirming! Would it be possible to edit the example in the article? The migration series of articles is imho a very important document that I refer to time and time again at work. Really appreciate the work put into the article!!
from safe-ecto-migrations.
Will do!
from safe-ecto-migrations.
I haven't forgotten about this. FWIW, I think adding a CTE to ensure order is the right solution (or sorting Elixir-side), just need to write the example and test it.
from safe-ecto-migrations.
@dbernheisel no worries thank you!
Really appreciate ThinkingElixir podcast and thanks for all the time and effort to bring quality news about Elixir to the listeners! 👍
from safe-ecto-migrations.
Related Issues (13)
- Docs on setting NON NULL safely on PG12+ may not be safe due to ecto-generated inclusion of `ALTER COLUMN ... TYPE ...` HOT 2
- Recommend `:text` instead of `:string`
- Adding non-immutable default value to existing table is not safe
- CREATE INDEX does not block table reads HOT 4
- adding generated stored columns on large tables in Postgres
- For each section there should be a test
- For each section there should be a citation
- Advisory lock for migration transactions HOT 10
- New strategy for changing type of a column
- Add hint to tune down `:migration_advisory_lock_retry_interval_ms` in `dev` environment when using `:pg_advisory_lock` HOT 1
- Verify concurrent index table locks
- Benchmark creating foreign key references for empty table column HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safe-ecto-migrations.