| 1 | |
|---|
| 2 | from south.db import db |
|---|
| 3 | from django.db import models |
|---|
| 4 | from finance_core.models import * |
|---|
| 5 | |
|---|
| 6 | class Migration: |
|---|
| 7 | |
|---|
| 8 | def forwards(self, orm): |
|---|
| 9 | |
|---|
| 10 | # Adding field 'Transaction.incurred_time' |
|---|
| 11 | db.add_column('finance_core_transaction', 'incurred_time', orm['finance_core.transaction:incurred_time']) |
|---|
| 12 | |
|---|
| 13 | # Adding field 'Transaction.tx_create_time' |
|---|
| 14 | db.add_column('finance_core_transaction', 'tx_create_time', orm['finance_core.transaction:tx_create_time']) |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | def backwards(self, orm): |
|---|
| 19 | |
|---|
| 20 | # Deleting field 'Transaction.incurred_time' |
|---|
| 21 | db.delete_column('finance_core_transaction', 'incurred_time') |
|---|
| 22 | |
|---|
| 23 | # Deleting field 'Transaction.tx_create_time' |
|---|
| 24 | db.delete_column('finance_core_transaction', 'tx_create_time') |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | models = { |
|---|
| 29 | 'finance_core.budgetarea': { |
|---|
| 30 | 'account_number': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|---|
| 31 | 'always': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
|---|
| 32 | 'budget_term': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['finance_core.BudgetTerm']"}), |
|---|
| 33 | 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|---|
| 34 | 'depth': ('django.db.models.fields.PositiveIntegerField', [], {}), |
|---|
| 35 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|---|
| 36 | 'interested': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
|---|
| 37 | 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), |
|---|
| 38 | 'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), |
|---|
| 39 | 'owner': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
|---|
| 40 | 'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), |
|---|
| 41 | 'use_owner': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) |
|---|
| 42 | }, |
|---|
| 43 | 'finance_core.budgetareaterm': { |
|---|
| 44 | 'budget_area': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['finance_core.BudgetArea']"}), |
|---|
| 45 | 'budget_term': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['finance_core.BudgetTerm']"}), |
|---|
| 46 | 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|---|
| 47 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) |
|---|
| 48 | }, |
|---|
| 49 | 'finance_core.budgetterm': { |
|---|
| 50 | 'end_date': ('django.db.models.fields.DateField', [], {}), |
|---|
| 51 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|---|
| 52 | 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
|---|
| 53 | 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '20', 'db_index': 'True'}), |
|---|
| 54 | 'start_date': ('django.db.models.fields.DateField', [], {}), |
|---|
| 55 | 'submit_deadline': ('django.db.models.fields.DateField', [], {}) |
|---|
| 56 | }, |
|---|
| 57 | 'finance_core.lineitem': { |
|---|
| 58 | 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '7', 'decimal_places': '2'}), |
|---|
| 59 | 'budget_area': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['finance_core.BudgetArea']"}), |
|---|
| 60 | 'budget_term': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['finance_core.BudgetTerm']"}), |
|---|
| 61 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|---|
| 62 | 'label': ('django.db.models.fields.CharField', [], {'max_length': '60'}), |
|---|
| 63 | 'layer': ('django.db.models.fields.IntegerField', [], {}), |
|---|
| 64 | 'tx': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['finance_core.Transaction']"}) |
|---|
| 65 | }, |
|---|
| 66 | 'finance_core.transaction': { |
|---|
| 67 | 'desc': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|---|
| 68 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|---|
| 69 | 'incurred_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|---|
| 70 | 'name': ('django.db.models.fields.CharField', [], {'max_length': '40'}), |
|---|
| 71 | 'tx_create_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) |
|---|
| 72 | } |
|---|
| 73 | } |
|---|
| 74 | |
|---|
| 75 | complete_apps = ['finance_core'] |
|---|