Skip to content

Commit e7adaeb

Browse files
committed
Added 1.7 migrations
1 parent 8fdf8af commit e7adaeb

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
from django.conf import settings
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12+
('contenttypes', '0001_initial'),
13+
]
14+
15+
operations = [
16+
migrations.CreateModel(
17+
name='ColumnMatch',
18+
fields=[
19+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20+
('column_name', models.CharField(max_length=200)),
21+
('field_name', models.CharField(max_length=255, blank=True)),
22+
('default_value', models.CharField(max_length=2000, blank=True)),
23+
('null_on_empty', models.BooleanField(default=False, help_text=b'If cell is blank, clear out the field setting it to blank.')),
24+
('header_position', models.IntegerField(help_text=b'Annoying way to order the columns to match the header rows')),
25+
],
26+
options={
27+
},
28+
bases=(models.Model,),
29+
),
30+
migrations.CreateModel(
31+
name='ImportedObject',
32+
fields=[
33+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
34+
('object_id', models.IntegerField()),
35+
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
36+
],
37+
options={
38+
},
39+
bases=(models.Model,),
40+
),
41+
migrations.CreateModel(
42+
name='ImportLog',
43+
fields=[
44+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
45+
('name', models.CharField(max_length=255)),
46+
('date', models.DateTimeField(auto_now_add=True, verbose_name=b'Date Created')),
47+
('import_file', models.FileField(upload_to=b'import_file')),
48+
('error_file', models.FileField(upload_to=b'error_file', blank=True)),
49+
('import_type', models.CharField(max_length=1, choices=[(b'N', b'Create New Records'), (b'U', b'Create and Update Records'), (b'O', b'Only Update Records')])),
50+
('update_key', models.CharField(max_length=200, blank=True)),
51+
('user', models.ForeignKey(editable=False, to=settings.AUTH_USER_MODEL)),
52+
],
53+
options={
54+
},
55+
bases=(models.Model,),
56+
),
57+
migrations.AddField(
58+
model_name='importedobject',
59+
name='import_log',
60+
field=models.ForeignKey(to='simple_import.ImportLog'),
61+
preserve_default=True,
62+
),
63+
migrations.CreateModel(
64+
name='ImportSetting',
65+
fields=[
66+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
67+
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
68+
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
69+
],
70+
options={
71+
},
72+
bases=(models.Model,),
73+
),
74+
migrations.AddField(
75+
model_name='importlog',
76+
name='import_setting',
77+
field=models.ForeignKey(editable=False, to='simple_import.ImportSetting'),
78+
preserve_default=True,
79+
),
80+
migrations.AddField(
81+
model_name='columnmatch',
82+
name='import_setting',
83+
field=models.ForeignKey(to='simple_import.ImportSetting'),
84+
preserve_default=True,
85+
),
86+
migrations.AlterUniqueTogether(
87+
name='columnmatch',
88+
unique_together=set([(b'column_name', b'import_setting')]),
89+
),
90+
migrations.AlterUniqueTogether(
91+
name='importsetting',
92+
unique_together=set([(b'user', b'content_type')]),
93+
),
94+
migrations.CreateModel(
95+
name='RelationalMatch',
96+
fields=[
97+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
98+
('field_name', models.CharField(max_length=255)),
99+
('related_field_name', models.CharField(max_length=255, blank=True)),
100+
('import_log', models.ForeignKey(to='simple_import.ImportLog')),
101+
],
102+
options={
103+
},
104+
bases=(models.Model,),
105+
),
106+
]

simple_import/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)