-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pieter De Decker
committed
Dec 8, 2017
1 parent
e478b1e
commit f05c2fc
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
locking/migrations/0001_squashed_0007_auto_20171004_0900_squashed_0002_auto_20171208_0824.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
), | ||
] |