[Django] #25144: No way to create tables for apps without migrations

4 views
Skip to first unread message

Django

unread,
Jul 19, 2015, 9:33:16 PM7/19/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: Bug | Status: new
Component: Core | Version: master
(Management commands) |
Severity: Release | Keywords:
blocker |
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The `migrate` management command uses a undocumented flag `run_syncdb`
which is used within our own test suite as well as when creating the test
databases. However, there is now way to pass this flag to the command and
thus no database tables for apps without migrations are created.

I mark this as a release blocker as it is currently impossible to create
the database tables, even though the 1.7 release notes stated we are going
to drop that support with 1.9.

--
Ticket URL: <https://code.djangoproject.com/ticket/25144>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 19, 2015, 10:01:02 PM7/19/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by timgraham):

Can we consider it a duplicate of #24919? Why is it a blocker despite the
deprecation?

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:1>

Django

unread,
Jul 19, 2015, 10:14:47 PM7/19/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by MarkusH):

I think it is more related to the outcome of #24481 and how we proceed
with the removal of syncdb. I'm not convinced anymore that enforcing
migrations for every app is the right choice. I try to write down my
thoughts during PyConAU on django-developers.

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:2>

Django

unread,
Jul 19, 2015, 10:31:26 PM7/19/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by timgraham):

Claude has proposed the idea on the [https://groups.google.com/d/topic
/django-developers/qHP4ZQSK9xM/discussion mailing list]. I don't think
there are any objections to the idea, and I think we mostly just need a
viable patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:3>

Django

unread,
Jul 20, 2015, 11:22:40 AM7/20/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner:
| JulianGindi
Type: Bug | Status: assigned

Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by JulianGindi):

* owner: nobody => JulianGindi
* status: new => assigned


Comment:

I'm going to take a stab at this, if I don't make some good progress in
the next couple of days, I'll release the ticket.

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:4>

Django

unread,
Jul 20, 2015, 11:25:20 AM7/20/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner:
| JulianGindi
Type: Bug | Status: assigned
Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by timgraham):

Hi Julian, I'd suggest to sketch out your ideas and say how it will relate
to #24481 before diving too deep into an implementation.

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:5>

Django

unread,
Jul 20, 2015, 11:30:12 AM7/20/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner:
Type: Bug | Status: new

Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by JulianGindi):

* owner: JulianGindi =>
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:6>

Django

unread,
Jul 20, 2015, 11:31:23 AM7/20/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner:
Type: Bug | Status: new

Component: Core (Management | Version: master
commands) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by JulianGindi):

Tim, good idea. I'll pitch my ideas and get feedback before jumping into
this one. Un-assigning for now in case someone more qualified comes by and
wants to take a crack at it.

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:7>

Django

unread,
Jul 29, 2015, 3:27:04 PM7/29/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner:
Type: New feature | Status: new

Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: 1.9 | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* keywords: => 1.9
* type: Bug => New feature
* severity: Release blocker => Normal
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:8>

Django

unread,
Aug 31, 2015, 10:51:06 AM8/31/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: timgraham
Type: New feature | Status: assigned

Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: 1.9 | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => assigned

* owner: => timgraham
* has_patch: 0 => 1


Comment:

A [https://github.com/django/django/pull/5212 possible solution].

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:9>

Django

unread,
Sep 4, 2015, 9:12:37 AM9/4/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: timgraham
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: 1.9 | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by MarkusH):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:10>

Django

unread,
Sep 4, 2015, 9:59:05 AM9/4/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: timgraham
Type: New feature | Status: closed

Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: fixed

Keywords: 1.9 | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"e133b55943f26e87cff5b22215a776a9ce3fc6f3" e133b55]:
{{{
#!CommitTicketReference repository=""
revision="e133b55943f26e87cff5b22215a776a9ce3fc6f3"
Refs #25144 -- Revised deprecation timeline: migrations won't become
compulsory.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:12>

Django

unread,
Sep 4, 2015, 9:59:05 AM9/4/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: timgraham
Type: New feature | Status: closed
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: fixed
Keywords: 1.9 | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"721d8e50ac2e1545ee112000f6e852f56c51d9f8" 721d8e5]:
{{{
#!CommitTicketReference repository=""
revision="721d8e50ac2e1545ee112000f6e852f56c51d9f8"
Fixed #25144 -- Allowed migrate to create tables for apps without
migrations.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:11>

Django

unread,
Sep 4, 2015, 10:00:02 AM9/4/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: timgraham
Type: New feature | Status: closed
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: fixed
Keywords: 1.9 | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"2d2eeff3b1cbdaa3b8f22a904da044ac709cc07e" 2d2eeff]:
{{{
#!CommitTicketReference repository=""
revision="2d2eeff3b1cbdaa3b8f22a904da044ac709cc07e"
[1.7.x] Refs #25144 -- Revised deprecation timeline: migrations won't
become compulsory.

Backport of e133b55943f26e87cff5b22215a776a9ce3fc6f3 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:13>

Django

unread,
Sep 4, 2015, 10:00:04 AM9/4/15
to django-...@googlegroups.com
#25144: No way to create tables for apps without migrations
-------------------------------------+-------------------------------------
Reporter: MarkusH | Owner: timgraham
Type: New feature | Status: closed
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: fixed
Keywords: 1.9 | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"20dfd02db0e57006bec763d67c8845987cc37740" 20dfd02]:
{{{
#!CommitTicketReference repository=""
revision="20dfd02db0e57006bec763d67c8845987cc37740"
[1.8.x] Refs #25144 -- Revised deprecation timeline: migrations won't
become compulsory.

Backport of e133b55943f26e87cff5b22215a776a9ce3fc6f3 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25144#comment:14>

Reply all
Reply to author
Forward
0 new messages