make instance times 2038 safe

This commit is contained in:
j 2016-11-04 17:26:52 +00:00
parent 95131a6429
commit b93b2eaf63
2 changed files with 34 additions and 3 deletions

View file

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-11-04 17:26
from __future__ import unicode_literals
import archive.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('archive', '0002_auto_20160219_1537'),
]
operations = [
migrations.AlterField(
model_name='instance',
name='atime',
field=models.BigIntegerField(default=archive.models.inttime, editable=False),
),
migrations.AlterField(
model_name='instance',
name='ctime',
field=models.BigIntegerField(default=archive.models.inttime, editable=False),
),
migrations.AlterField(
model_name='instance',
name='mtime',
field=models.BigIntegerField(default=archive.models.inttime, editable=False),
),
]

View file

@ -594,9 +594,9 @@ class Instance(models.Model):
created = models.DateTimeField(auto_now_add=True) created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True) modified = models.DateTimeField(auto_now=True)
atime = models.IntegerField(default=inttime, editable=False) atime = models.BigIntegerField(default=inttime, editable=False)
ctime = models.IntegerField(default=inttime, editable=False) ctime = models.BigIntegerField(default=inttime, editable=False)
mtime = models.IntegerField(default=inttime, editable=False) mtime = models.BigIntegerField(default=inttime, editable=False)
path = models.CharField(max_length=2048) path = models.CharField(max_length=2048)
ignore = models.BooleanField(default=False) ignore = models.BooleanField(default=False)