Skip to content
Snippets Groups Projects
Commit a6f654eb authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[databases] Add missing ordering requirements for back-ups

parent 2ac0900d
No related branches found
No related tags found
1 merge request!201[databases] Add missing ordering requirements for back-ups
Pipeline #
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-06-30 17:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('databases', '0002_scheduler_addons'),
]
operations = [
migrations.AlterModelOptions(
name='database',
options={'ordering': ['previous_version_id', 'fork_of_id', 'id']},
),
]
...@@ -189,9 +189,14 @@ class Database(Versionable): ...@@ -189,9 +189,14 @@ class Database(Versionable):
#_____ Meta parameters __________ #_____ Meta parameters __________
class Meta: class Meta(Versionable.Meta):
unique_together = ('name', 'version') unique_together = ('name', 'version')
# setup ordering so that the dump order respects self dependencies
# note: Versionable already has the right ordering - not sure why
# `django makemigrations' is not detecting it though.
ordering = ['previous_version_id', 'fork_of_id', 'id']
#_____ Utilities __________ #_____ Utilities __________
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment