Modify ↓
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 |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 |
| Component: | commands | Version: | 0.7.3 |
| Keywords: | sqlite3 _remake_table null | Cc: | alej0varas@… |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Could you retest using the development version of South? There have been several fixes to NULL handling.