From 1bd278fb83d40fcc8f5392320a3238cdad5b8416 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Oct 2017 18:41:31 +0200 Subject: Json fields: change default and db index (refs #3077) --- .../migrations/0012_auto_20171017_1730.py | 26 ---------------------- .../migrations/0012_auto_20171017_1840.py | 26 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 archaeological_context_records/migrations/0012_auto_20171017_1730.py create mode 100644 archaeological_context_records/migrations/0012_auto_20171017_1840.py (limited to 'archaeological_context_records/migrations') diff --git a/archaeological_context_records/migrations/0012_auto_20171017_1730.py b/archaeological_context_records/migrations/0012_auto_20171017_1730.py deleted file mode 100644 index 49a3ee5f3..000000000 --- a/archaeological_context_records/migrations/0012_auto_20171017_1730.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11 on 2017-10-17 17:30 -from __future__ import unicode_literals - -import django.contrib.postgres.fields.jsonb -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('archaeological_context_records', '0011_auto_20171012_1316'), - ] - - operations = [ - migrations.AddField( - model_name='contextrecord', - name='data', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True), - ), - migrations.AddField( - model_name='historicalcontextrecord', - name='data', - field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True), - ), - ] diff --git a/archaeological_context_records/migrations/0012_auto_20171017_1840.py b/archaeological_context_records/migrations/0012_auto_20171017_1840.py new file mode 100644 index 000000000..6de4abb0f --- /dev/null +++ b/archaeological_context_records/migrations/0012_auto_20171017_1840.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2017-10-17 18:40 +from __future__ import unicode_literals + +import django.contrib.postgres.fields.jsonb +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('archaeological_context_records', '0011_auto_20171012_1316'), + ] + + operations = [ + migrations.AddField( + model_name='contextrecord', + name='data', + field=django.contrib.postgres.fields.jsonb.JSONField(db_index=True, default={}), + ), + migrations.AddField( + model_name='historicalcontextrecord', + name='data', + field=django.contrib.postgres.fields.jsonb.JSONField(db_index=True, default={}), + ), + ] -- cgit v1.2.3