Ticket #940 (closed defect: duplicate)
_remake_table does not set NULL or NOT NULL on _south_new_<table> using sqlite3
|Reported by:||alej0varas@…||Owned by:||andrew|
|Keywords:||sqlite3 _remake_table null||Cc:||alej0varas@…|
When _remake_table create the schema(definitions) for the _south_new_<table> it does not take in account the 'null_ok' parameter, for this the new table does not represents the real field parameter 'null'.
I've used this to solve the problem, on sqlite3.py at line 73:
definitions[name] = type + [' NOT', ''][column_info[-1]] + ' NULL'
This worked for me, but I'm not sure if it is a safe solution.
- Status changed from new to infoneeded
- Milestone set to 1.0