Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
a6f654eb
There was a problem fetching the pipeline summary.
Commit
a6f654eb
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[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
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beat/web/databases/migrations/0003_auto_20160630_1710.py
+19
-0
19 additions, 0 deletions
beat/web/databases/migrations/0003_auto_20160630_1710.py
beat/web/databases/models.py
+6
-1
6 additions, 1 deletion
beat/web/databases/models.py
with
25 additions
and
1 deletion
beat/web/databases/migrations/0003_auto_20160630_1710.py
0 → 100644
+
19
−
0
View file @
a6f654eb
# -*- 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
'
]},
),
]
This diff is collapsed.
Click to expand it.
beat/web/databases/models.py
+
6
−
1
View file @
a6f654eb
...
@@ -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 __________
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment