Deprecate internal syncdb in 1.9 ?

82 views
Skip to first unread message

Andriy Sokolovskiy (coldmind)

unread,
Jun 3, 2015, 7:16:37 AM6/3/15
to django-d...@googlegroups.com
After discussion with Markus Holtermann, we decided that we need to deprecate internal syncdb in 1.9 (https://github.com/django/django/blob/7c637a3aaec311269bf863c220bf894eebbe7c7c/django/core/management/commands/migrate.py#L136)
The fact that apps without migrations are not supported, which is documented for current master, is not fully right, because migrate command
is still calling syncdb inside.
I think it is time to drop support of apps without migrations internally, so in 2.0, after users will be warned in 1.9, we can remove syncdb and create
schema only from migrations and require all installed apps with models to have migrations.

Markus Holtermann

unread,
Jun 3, 2015, 9:29:15 AM6/3/15
to django-d...@googlegroups.com
After some discussion with other members of the core team, we think that we might re-evaluate the point of dropping support for apps without migrations. But this highly depends on the outcome of what Andrew is going to achieve in https://code.djangoproject.com/ticket/24481#comment:6 with regards to the last point. Depending on the actual overhead that comes up there we'll may or may not enforce migrations for all apps at some point.

The deprecation timeline marks the removal of support for apps without migration a part of 1.9. However, since the reason for putting that on the deprecation timeline was that syncdb used to use the old DDL code, this argument does not hold anymore. syncdb uses the same DDL code as migrations.

/Markus

Marc Tamlyn

unread,
Jun 3, 2015, 11:14:00 AM6/3/15
to django-d...@googlegroups.com
Maintaining some ability for test applications to have no migrations is very important for Django's own test suite and also other tools such as djangobench. If we're going to maintain some form of code path for that, we should expose it publicly as well.

Marc

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/7d2fd535-40b3-4c83-845b-72d248096587%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages