Allow for USING keyword in ALTER COLUMN migrations. #21
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-dbi#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is not something that will be in a snapshot. But if you want to write your own migration script you should be able to supply a way of converting the existing column data.
For example, my current issue is converting a
text
column into ajsonb
column. The column data contains mostly JSON strings, but also some numeric and plain text data. The belowALTER COLUMN
query sorts everything out but there is no way to specifyUSING
in current migration scripts.closed via commit
41752bfe19