2 ms·
I really want schema definition to be declarative; then ask me for a data migration if applying (to a given db) is going to result in data loss (e.g. declaratio
by OJFord 6y ago
I really want schema definition to be declarative; then ask me for a data migration if applying (to a given db) is going to result in data loss (e.g. declaration doesn't include a column that currently exists in db), optional otherwise.
Even when state-aware migrations are needed they could be better, e.g. 'on creating this column, value = other column * 2' rather than in an ordered sequence.