#31730: manage.py sqlsequencereset not implemented for sqlite3 -------------------------------------+------------------------------------- Reporter: axil | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: master (models, ORM) | Severity: Normal | Resolution: Keywords: sql sequence reset | Triage Stage: Accepted sqlite3 | Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by axil): Replying to [comment:4 Simon Charette]: > In a following commit the logic that identifies the sequences that need to be reset should be moved to the command itself to avoid the huge amount of boilerplate repeated in the current PostgreSQL and Oracle `DatabaseOperations` implementations. That will also avoid leaking `db.models` abstraction to the `db.backends` ones. We should probably use `connection.introspection.sequence_list()` to ''JOIN'' its return value to the specified model subset tables. In the end I think the signature of the of the `sequence_reset_sql` method should be something like `(style, sequences)`. I've done this part in a separate PR: https://github.com/django/django/pull/13103 So far for postgres only. Please have a look. -- Ticket URL: <https://code.djangoproject.com/ticket/31730#comment:9> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.d1c24c0c42b6de4646786bf7ea9371a8%40djangoproject.com.