Skip to content

Commit

Permalink
Resquash migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter De Decker committed Dec 8, 2017
1 parent e478b1e commit f05c2fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
3 changes: 0 additions & 3 deletions locking/migrations/0001_squashed_0007_auto_20171004_0900.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@


class Migration(migrations.Migration):

replaces = [('locking', '0001_initial'), ('locking', '0002_rename'), ('locking', '0003_optimize_queries'), ('locking', '0004_auto_20160907_0942'), ('locking', '0004_auto_20151115_0703'), ('locking', '0005_merge_20170504_1024'), ('locking', '0006_auto_20170609_1342'), ('locking', '0007_auto_20171004_0900')]

initial = True

dependencies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-12-08 08:26
from __future__ import unicode_literals

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

replaces = [(b'locking', '0001_squashed_0007_auto_20171004_0900'), (b'locking', '0002_auto_20171208_0824')]

dependencies = [
]

operations = [
migrations.CreateModel(
name='NonBlockingLock',
fields=[
('locked_object', models.CharField(max_length=150, unique=True, verbose_name='locked object')),
('created_on', models.DateTimeField(db_index=True, verbose_name='created on')),
('max_age', models.PositiveIntegerField(default=0, help_text='The age of a lock before it can be overwritten. 0 means indefinitely.', verbose_name='Maximum lock age')),
('expires_on', models.DateTimeField(db_index=True, verbose_name='expires on')),
('renewed_on', models.DateTimeField(db_index=True, verbose_name='renewed on')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
],
options={
'ordering': ['created_on'],
'verbose_name': 'NonBlockingLock',
'verbose_name_plural': 'NonBlockingLocks',
},
),
]

0 comments on commit f05c2fc

Please sign in to comment.