Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#25144 closed New feature (fixed)

No way to create tables for apps without migrations

Reported by: Markus Holtermann Owned by: Tim Graham
Component: Core (Management commands) Version: dev
Severity: Normal Keywords: 1.9
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (14)

comment:1 by Tim Graham, 9 years ago

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

comment:2 by Markus Holtermann, 9 years ago

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.

comment:3 by Tim Graham, 9 years ago

Claude has proposed the idea on the mailing list. I don't think there are any objections to the idea, and I think we mostly just need a viable patch.

comment:4 by Julian Gindi, 9 years ago

Owner: changed from nobody to Julian Gindi
Status: newassigned

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.

comment:5 by Tim Graham, 9 years ago

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.

comment:6 by Julian Gindi, 9 years ago

Owner: Julian Gindi removed
Status: assignednew

comment:7 by Julian Gindi, 9 years ago

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.

comment:8 by Tim Graham, 9 years ago

Keywords: 1.9 added
Severity: Release blockerNormal
Triage Stage: UnreviewedAccepted
Type: BugNew feature

comment:9 by Tim Graham, 9 years ago

Has patch: set
Owner: set to Tim Graham
Status: newassigned

comment:10 by Markus Holtermann, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:11 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 721d8e5:

Fixed #25144 -- Allowed migrate to create tables for apps without migrations.

comment:12 by Tim Graham <timograham@…>, 9 years ago

In e133b55:

Refs #25144 -- Revised deprecation timeline: migrations won't become compulsory.

comment:13 by Tim Graham <timograham@…>, 9 years ago

In 2d2eeff:

[1.7.x] Refs #25144 -- Revised deprecation timeline: migrations won't become compulsory.

Backport of e133b55943f26e87cff5b22215a776a9ce3fc6f3 from master

comment:14 by Tim Graham <timograham@…>, 9 years ago

In 20dfd02:

[1.8.x] Refs #25144 -- Revised deprecation timeline: migrations won't become compulsory.

Backport of e133b55943f26e87cff5b22215a776a9ce3fc6f3 from master

Note: See TracTickets for help on using tickets.
Back to Top