SchemaEditor: Alter Default requires column definition
54 views
Skip to first unread message
Max Bothe
unread,
Jan 17, 2016, 12:47:00 PM1/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers (Contributions to Django itself)
Hi all,
Some databases (like SAP HANA) don't support adding or removing a default value of a column without redefining the column [1].
In order to support custom backends for these databases, the column definition has to be passed additionally to the format strings sql_alter_column_defaultand sql_alter_column_no_defaultindjango.db.backend.base.schema.BaseSchemaEditor.