Markus Holtermann
37b50db092
[1.7.x] Refs #24236 -- Added regression test for 3d4a826174b7a411a03be39725e60c940944a7fe
...
Thanks irc user ris for the report
2015-02-09 16:48:51 +01:00
Andriy Sokolovskiy
3d4a826174
[1.7.x] Fixed #24104 -- Fixed check to look on field.get_internal_type() instead of class instance
2015-01-27 14:40:39 +01:00
Markus Holtermann
70845c6809
[1.7.x] Refs #24163 -- Fixed failing Oracle test when migrating from ForeignKey to OneToOneField
...
Thanks Tim Graham for review
Backport of 64ecb3f07db4be5eef4d9eb7687f783ee446c82f from master
2015-01-20 17:46:37 +01:00
Markus Holtermann
db2a97870d
[1.7.x] Fixed #24163 -- Removed unique constraint after index on MySQL
...
Thanks Łukasz Harasimowicz for the report.
Backport of 5792e6a88c1444d4ec84abe62077338ad3765b80 from master
2015-01-19 17:25:05 +01:00
Tim Graham
a9da5dd5b6
[1.7.x] Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.
...
Thanks john_scott for the report and Markus Holtermann for review.
Backport of ab4f709da4516672b0bd811f2b4d0c4ba9f5b636 from master
2014-12-30 08:31:18 -05:00
Tim Graham
66c0529b3e
[1.7.x] Fixed refs #23987 test on Oracle.
...
Backport of ac5f2a4ef7b9993502ebc02f487cbb06bfb9bf0a from master
2014-12-15 18:20:41 -05:00
Andriy Sokolovskiy
1690b92b0d
[1.7.x] Fixed #23987 -- Made SQLite SchemaEditor always use effective_default().
...
Backport of 089047331d972c0ee58d13476fc54f2118bf1359 from master
2014-12-15 13:42:08 -05:00
Tim Graham
d57124433f
[1.7.x] Fixed #23920 -- Fixed MySQL crash when adding blank=True to TextField.
...
Thanks wkornewald for the report and Markus Holtermann for review.
Backport of 765fa36d57d08d0568438f6fd74521e7a56abb61 from master
2014-12-04 10:59:05 -05:00
Veres Lajos
6b32adda59
[1.7.x] Fixed typos using https://github.com/vlajos/misspell_fixer
...
Backport of a71a2ea756 from master
2014-11-03 21:07:05 -05:00
Markus Holtermann
40ad022d5e
[1.7.x] Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same default value
...
Thanks to Andrey Antukh for the report.
Backport of 715ccfde24 from master
2014-10-31 13:30:56 -04:00
Tim Graham
7750fc8fa8
[1.7.x] Fixed #23702 -- Fixed adding an explicit id field on SQLite.
...
Thanks gavinwahl for the report.
Backport of 92269b7b53 from master
2014-10-23 14:35:55 -04:00
Markus Holtermann
71988ed953
[1.7.x] Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column into a NOT NULL one due to existing rows
...
Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
Backport of f633ba778d from master
2014-10-09 22:41:27 +07:00
Sergey Fedoseev
58d7b84d53
[1.7.x] Fixed #23065 -- Quoted constraint names in SQL generated by migrations.
...
Backport of 83cd18633f from master
2014-09-23 10:11:58 -04:00
Tim Graham
187ee0a4ac
[1.7.x] Removed unnecessary absolute_imports.
...
Backport of e0cf030194 from master
2014-08-25 13:13:58 -04:00
Shai Berger
588f66d182
[1.7.x] Fixed schema test for Oracle 11.2.0.1 which is used in Django Project's CI.
...
Refs #23073 Workaround.
Refs #22738 Repeats the mysql "offense". When the issue is solved, the
Oracle special case should be made to play with the solution (that is,
Oracle should be fixed the same way that mysql and the 3rd-party backneds
are).
Backport of 56252e7 from master
2014-08-22 05:34:20 +03:00
Andrew Godwin
ee74f9fe3b
[1.7.x] Fixed #23264 : Schema backends honour db_constraint
2014-08-09 17:51:06 +10:00
Andrew Godwin
a918c60c37
[1.7.x] Fixed #23091 : CreateModel and AddField were clashing with deferred SQL
2014-08-04 11:59:48 +10:00
Andrew Godwin
88135a8cf7
[1.7.x] Fixed #23009 : Shorten FK identifiers in add_field and make consistent
2014-07-21 10:50:58 +01:00
Alex Gaynor
1d9f308fa1
[1.7.x] Fixed several flake8 errors
...
Backport of d015c9d11c from master
2014-06-18 12:05:36 -04:00
Andrew Godwin
57a770b8e5
[1.7.x] Fix test breakage on MySQL
2014-06-17 00:36:41 -07:00
Andrew Godwin
6e7da2bfaf
[1.7.x] Fixed #22851 : BinaryView wasn't getting a binary default
2014-06-16 18:44:22 -07:00
Tim Graham
dc7d0f50e2
[1.7.x] Renamed DatabaseFeature.supports_check_constraints to supports_column_check_constraints.
...
Thanks maxi for the suggestion.
Backport of 82c935d44c from master
2014-06-16 19:25:58 -04:00
Aymeric Augustin
e244e456c7
[1.7.x] Appeased flake8.
...
Backport of b1432bfc from master
2014-05-08 22:45:26 +02:00
Andrew Godwin
f2bf59a5bc
[1.7.x] Fixed #22476 : Couldn't alter attributes on M2Ms with through= set
2014-05-08 10:34:45 -07:00
Andrew Godwin
d8bf415ab2
[1.7.x] Fixed #22581 : Pass default values for schema through get_db_prep_save()
2014-05-07 13:47:02 -07:00
Alex Gaynor
996564df4d
[1.7.x] Fix many many typos in comments throughout the codebase
...
Backport of 2bcb8bfc8d from master
2014-04-26 14:35:57 -04:00
Daniel Hahler
21eaad68e6
[1.7.x] Fixed #22293 -- Avoided renaming many-to-many tables to themselves.
...
Fixed this for both implementations of _alter_many_to_many, instead of
in `alter_db_table` itself (more implementations).
Backport of 1edfa155e3 from master
2014-03-24 13:27:06 -04:00
Andrew Godwin
6b07804474
Fixed #22183 : Through M2Ms now correctly handled
2014-03-08 15:58:04 -08:00
Michael Manfre
3ffeb93186
Ensure cursors are closed when no longer needed.
...
This commit touchs various parts of the code base and test framework. Any
found usage of opening a cursor for the sake of initializing a connection
has been replaced with 'ensure_connection()'.
2014-02-02 12:47:21 -05:00
Simon Charette
3acdb3068a
Fixed a failing schema assertion.
...
BooleanFields are stored as TINYINT(1) on MySQL.
2014-01-25 10:59:38 -05:00
Andrew Godwin
2a30b39f40
Fixed #21783 : More SQLite default fun with nulls.
2014-01-25 00:10:25 +00:00
Shai Berger
056be4358d
Fixed two test failures under Oracle
2014-01-20 13:01:14 +02:00
Andrew Godwin
e802c97581
Fixed #21783 : Use defaults for adding NOT NULL on sqlite
2014-01-19 17:10:24 +00:00
Ramiro Morales
3efd1b8b93
Fixed #21692 -- Quote table name when creating it.
2013-12-27 18:43:52 -03:00
Andrew Godwin
5db028affb
Fix altering of SERIAL columns and InnoDB being picky about FK changes
2013-12-11 14:19:05 +00:00
Alex Gaynor
7349a22d29
flake8 fix
2013-11-25 09:21:25 -06:00
Shai Berger
de220fb85e
Fixed test failure on Oracle
...
Failure was introduced with test in [19e5cd77f0536b778b00788e34d8199835143855]
2013-11-25 15:11:50 +02:00
Joel Bohman
19e5cd77f0
Fixed #21497 -- Forced conversion to bytes for very long index names
2013-11-24 13:15:50 -05:00
Alex Gaynor
f67e18f39e
Fixed all E251 violations
2013-11-03 10:17:58 -08:00
Tim Graham
96d1d4e292
Removed unused local variables in tests.
2013-10-19 08:31:38 -04:00
Andrew Godwin
6ede1db331
Fixed #21151 -- Bad cleanup in schema M2M repoint test
2013-09-24 11:00:00 +01:00
Andrew Godwin
6f7977bb63
Fixed #21029 : Test for previously-commited SchemaEditor.__exit__ bug.
2013-09-06 12:16:03 -05:00
Tim Graham
2fd03b39ab
Removed references to django.utils.unittest which is PendingDeprecation
2013-09-03 09:55:21 -04:00
Claude Paroz
b04f8ddbaa
Fixed #21005 -- Made schema tests language-independent
...
Thanks Simon Charette for the review.
2013-08-30 21:28:21 +02:00
Simon Charette
11cd7388f7
Fixed #20989 -- Removed useless explicit list comprehensions.
2013-08-30 10:57:51 -04:00
Andrew Godwin
ac45f9c9c5
Fix some small errors in the tests
2013-08-23 12:07:43 +01:00
Andrew Godwin
52edc16086
Add more stringent M2M tests and fix the bug they exposed
2013-08-19 13:50:26 +01:00
Andrew Godwin
157604a87f
Oracle schema backend, passes most tests and is pretty complete.
2013-08-13 20:54:57 +01:00
Andrew Godwin
ae19315b4d
Support index_together during model creation
2013-08-11 14:23:31 +01:00
Andrew Godwin
3a6580e485
Make get_constraints return columns in order
2013-07-02 18:02:20 +01:00