﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26399	Refactor SchemaEditor to facilitate Firebird handlings of column defaults	Maximiliano Robaina	nobody	"I humbly think that django migration api need a some refactoring to facilitate third-party backend integration.

For instance, the [https://github.com/django/django/blob/14e6823d090a077d27f9f7caff2d505db31e55a7/django/db/backends/base/schema.py#L373 SchemaEditor.add_field()] method, if I try to delete a default value on a column that does not have a previous default value definition I get an error on firebird, for which reason, I need to check if that field has got defined a default value before. Then I need to rewrite the whole add_field method too.

Maybe a possible approach would be to have sql templates (`sql_alter_column_default`, `sql_alter_column_no_default`, etc.) as methods, instead of class attributes.

[https://groups.google.com/d/topic/django-developers/yZ0IWGT2qZQ/discussion A discussion about this on django-developers]."	Cleanup/optimization	closed	Migrations	dev	Normal	needsinfo			Accepted	0	0	0	0	0	0
