From b93b2eaf63f72247e3b88717f262e4a97fc918ed Mon Sep 17 00:00:00 2001 From: j Date: Fri, 4 Nov 2016 17:26:52 +0000 Subject: [PATCH] make instance times 2038 safe --- .../migrations/0003_auto_20161104_1726.py | 31 +++++++++++++++++++ pandora/archive/models.py | 6 ++-- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 pandora/archive/migrations/0003_auto_20161104_1726.py diff --git a/pandora/archive/migrations/0003_auto_20161104_1726.py b/pandora/archive/migrations/0003_auto_20161104_1726.py new file mode 100644 index 00000000..5632538d --- /dev/null +++ b/pandora/archive/migrations/0003_auto_20161104_1726.py @@ -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), + ), + ] diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 5897503d..dc85c409 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -594,9 +594,9 @@ class Instance(models.Model): created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) - atime = models.IntegerField(default=inttime, editable=False) - ctime = models.IntegerField(default=inttime, editable=False) - mtime = models.IntegerField(default=inttime, editable=False) + atime = models.BigIntegerField(default=inttime, editable=False) + ctime = models.BigIntegerField(default=inttime, editable=False) + mtime = models.BigIntegerField(default=inttime, editable=False) path = models.CharField(max_length=2048) ignore = models.BooleanField(default=False)