Aymeric Augustin
|
860c2c8bc5
|
Moved django.db.models.loading to django.apps.cache.
This commit doesn't contain any code changes; it's purely a refactoring.
|
2013-12-17 10:17:43 +01:00 |
Andrew Godwin
|
5db028affb
|
Fix altering of SERIAL columns and InnoDB being picky about FK changes
|
2013-12-11 14:19:05 +00:00 |
Andrew Godwin
|
cee4fe7307
|
Better default name for migrations we can't give nice names to
|
2013-12-11 13:23:07 +00:00 |
Andrew Godwin
|
248fdb1110
|
Change FKs when what they point to changes
|
2013-12-11 13:16:29 +00:00 |
Loic Bistuer
|
a2814846ca
|
Fixed E124 pep8 warnings.
|
2013-12-10 15:12:48 -05:00 |
Baptiste Mispelon
|
72479a2957
|
Made the migration detector use meta.local_fields instead of meta.fields.
Refs #21010.
Thanks to Loïc for the patch.
|
2013-12-06 15:23:21 +01:00 |
Baptiste Mispelon
|
19e4374971
|
Fixed ModelState breaking when unique_together has unhashable elements.
|
2013-12-06 15:22:52 +01:00 |
Baptiste Mispelon
|
f463789f62
|
Added app_label to the error message when field reconstructing fails.
|
2013-12-06 15:22:47 +01:00 |
Andrew Godwin
|
a06fd092ef
|
Merge pull request #2037 from bmispelon/invalidbaseserror
Fixed TypeError when rendering ModelState with multiple bases.
|
2013-12-06 05:48:21 -08:00 |
maurycyp
|
4d0c72eb68
|
Removed unreachable `else` in `try` block.
|
2013-12-06 01:10:52 -05:00 |
Baptiste Mispelon
|
aba75b0d71
|
Fixed TypeError when rendering ModelState with multiple bases.
|
2013-12-06 00:55:31 +01:00 |
Andrew Godwin
|
e9c6d04224
|
Better error reporting when from_app_cache fails
|
2013-12-05 14:20:30 +00:00 |
Andrew Godwin
|
3b8e46cbc7
|
Migration VCS conflict detection and --merge for makemigrations
|
2013-12-04 16:01:49 +00:00 |
Andrew Godwin
|
ce05b8a69e
|
Don't make a second migration if there was a force-null-default addcol.
|
2013-12-04 13:56:22 +00:00 |
Simon Charette
|
42ac138009
|
Fixed a deprecation warning introduced by 96dd48c83f .
|
2013-11-28 21:42:24 -05:00 |
Andrew Godwin
|
67b51b9895
|
Include deferred SQL in sqlmigrate output
|
2013-11-27 16:29:37 +00:00 |
Andrew Godwin
|
5e63977c0e
|
Fixed #21438: makemigrations now detects ManyToManyFields
|
2013-11-27 15:28:33 +00:00 |
Andrew Godwin
|
96dd48c83f
|
Change initial migration writing to work as docs suggest.
Application template now includes an empty migrations module, and
the autodetector will only make initial migrations for apps with
empty modules.
|
2013-11-27 12:34:31 +00:00 |
Andrew Godwin
|
db4527e3c0
|
Fix squashed migration loading ordering issue
|
2013-11-27 12:29:22 +00:00 |
Alex Gaynor
|
e5b7045422
|
flake8 fixes
|
2013-11-06 20:00:48 -08:00 |
Andrew Godwin
|
106b019dc9
|
Massive migration optimiser improvements + RenameModel opn
|
2013-11-06 13:47:58 +00:00 |
Alex Gaynor
|
c347f78cc1
|
Fixed all E226 violations
|
2013-11-03 10:08:55 -08:00 |
Milton Mazzarri
|
cbc7cbbc5b
|
Fixed flake8 E251 violations
|
2013-11-03 03:22:11 -06:00 |
Alex Gaynor
|
7548aa8ffd
|
More attacking E302 violators
|
2013-11-02 13:12:09 -07:00 |
Tim Graham
|
36ded01527
|
Fixed #21302 -- Fixed unused imports and import *.
|
2013-11-02 15:24:56 -04:00 |
Andrew Godwin
|
e9cb333bc3
|
Auto-apply initial migrations if their tables exist already.
|
2013-10-30 15:17:49 +00:00 |
Baptiste Mispelon
|
497930b7f6
|
Use `callable` instead of `six.callable`.
The `callable` builtin was added back in python 3.2
which is the minimal python3 version supported by django
at this point.
|
2013-10-29 21:53:51 +01:00 |
Andrew Godwin
|
5ab8b5d72c
|
Fix migration planner to fully understand squashed migrations. And test.
|
2013-10-23 22:56:54 +01:00 |
Alasdair Nicol
|
c3aa2948c6
|
Fixed #21298 -- Fixed E301 pep8 warnings
|
2013-10-23 13:45:03 +01:00 |
Loic Bistuer
|
e565e1332d
|
Fixed #21275 -- Fixed a serializer error when generating migrations for contrib.auth.
The migration serializer now looks for a deconstruct method on any object.
|
2013-10-21 14:54:52 -04:00 |
Loic Bistuer
|
8d6953d55c
|
Added support for serializing class methods. - Refs #21290.
The new handling allows us to do away with the whitelisting that was
required to support date and datetime objects.
|
2013-10-19 12:10:18 -04:00 |
Loic Bistuer
|
584110417f
|
Fixed #21283 -- Added support for migrations if models is a package.
Thanks Markus Holtermann for the report.
|
2013-10-19 09:48:57 -04:00 |
Andrew Godwin
|
763ac8b642
|
First pass on squashmigrations command; files are right, execution not.
|
2013-10-16 12:00:07 +01:00 |
Andrew Godwin
|
42f8666f6a
|
Improve migration optimizer to be able to optimize through other ops
|
2013-10-16 11:09:33 +01:00 |
Florian Apolloner
|
ed8919cbcb
|
Handle Apps with South migrations as unmigrated apps.
|
2013-10-15 11:57:30 +02:00 |
Tim Graham
|
adedc31072
|
Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.
|
2013-10-10 11:09:42 -04:00 |
Javed Khan
|
4dbd95ad65
|
Fixed #21236 -- Allowed migrations to work with unique_together tuples.
Thanks hjwp for the report.
|
2013-10-07 09:39:14 -04:00 |
Andrew Godwin
|
a80d9ab0fe
|
Initial version of MigrationOptimizer and tests
|
2013-10-02 17:34:22 +01:00 |
Andrew Godwin
|
6d3faba2d2
|
Add reverse_code optional argument to RunPython
|
2013-09-25 17:21:20 +01:00 |
Andrew Godwin
|
fe9f342d8c
|
Allow callables as the argument to RunPython
|
2013-09-25 16:10:43 +01:00 |
Andrew Godwin
|
8a3e543f26
|
Make sqlmigrate ignore the RunPython operation
|
2013-09-25 14:37:44 +01:00 |
Andrew Godwin
|
3b810c5656
|
Add RunPython migration operation and tests
|
2013-09-25 13:58:07 +01:00 |
Andrew Godwin
|
05656f2388
|
Add equality support for Project/ModelState
|
2013-09-25 13:47:46 +01:00 |
Markus Holtermann
|
5a424c2393
|
Fixed #21114 -- Migrations must not have a dependency to themselves.
|
2013-09-17 11:47:19 -04:00 |
Alex Gaynor
|
bac86ad1a3
|
REmoved some unused imports
|
2013-09-14 12:34:57 -07:00 |
Gregor MacGregor
|
b2b763448f
|
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
|
2013-09-10 11:09:59 -04:00 |
Loic Bistuer
|
d59f1993f1
|
Made MigrationWriter look for a "deconstruct" attribute on functions.
Refs #20978.
|
2013-09-10 10:12:23 -04:00 |
Andrew Godwin
|
bacbbb481d
|
RunSQL migration operation and alpha SeparateDatabaseAndState op'n.
|
2013-09-07 11:03:38 -05:00 |
Loic Bistuer
|
adc0ab3386
|
Fixed #21037 -- Made MigrationWriter raise a ValueError when serializing lambda functions.
|
2013-09-06 20:13:01 -04:00 |
Andrew Godwin
|
efd1e6096e
|
Adding 'sqlmigrate' command and quote_parameter to support it.
|
2013-09-06 15:28:12 -05:00 |