This repository has been archived by the owner on Apr 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix downloadnetfilerawdata import by standardizing schema
The column headers in data/netfile/csv/netfile_cal201_transaction.csv did not match the table schema, resulting in an import error. I updated the corresponding model to match.
- Loading branch information
Showing
2 changed files
with
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('netfile_raw', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='netfilecal201transaction', | ||
name='filerLocalId', | ||
field=models.CharField(default='Unknown', max_length=32, db_column='filerLocalId'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='netfilecal201transaction', | ||
name='filerStateId', | ||
field=models.CharField(default='Unknown', max_length=32, db_column='filerStateId'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='netfilecal201transaction', | ||
name='filingEndDate', | ||
field=models.DateField(default='1970-01-01', db_column='filingEndDate'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='netfilecal201transaction', | ||
name='filingStartDate', | ||
field=models.DateField(default='1970-01-01', db_column='filingStartDate'), | ||
preserve_default=False, | ||
), | ||
] |
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