From 87be2e5256eac4ac8cb2f700bc3157ffe9111c4f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 9 Jun 2012 21:05:18 +0200 Subject: [PATCH] Actually include migration too --- .../0003_auto__add_field_invoice_comment.py | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 invoice/migrations/0003_auto__add_field_invoice_comment.py diff --git a/invoice/migrations/0003_auto__add_field_invoice_comment.py b/invoice/migrations/0003_auto__add_field_invoice_comment.py new file mode 100644 index 0000000..bbc16eb --- /dev/null +++ b/invoice/migrations/0003_auto__add_field_invoice_comment.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + # Adding field 'Invoice.comment' + db.add_column('invoice_invoice', 'comment', + self.gf('django.db.models.fields.TextField')(default='', blank=True), + keep_default=False) + + def backwards(self, orm): + # Deleting field 'Invoice.comment' + db.delete_column('invoice_invoice', 'comment') + + models = { + 'invoice.client': { + 'Meta': {'object_name': 'Client'}, + 'address': ('django.db.models.fields.TextField', [], {}), + 'email': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) + }, + 'invoice.invoice': { + 'Meta': {'object_name': 'Invoice'}, + 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'currency': ('django.db.models.fields.CharField', [], {'max_length': '10'}), + 'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['invoice.Client']"}), + 'date': ('django.db.models.fields.DateField', [], {}), + 'due_date': ('django.db.models.fields.DateField', [], {}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'status': ('django.db.models.fields.CharField', [], {'max_length': '1'}) + }, + 'invoice.invoiceline': { + 'Meta': {'object_name': 'InvoiceLine'}, + 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '19', 'decimal_places': '2'}), + 'description': ('django.db.models.fields.CharField', [], {'max_length': '100'}), + 'hourly_rate': ('django.db.models.fields.DecimalField', [], {'default': '300.0', 'max_digits': '6', 'decimal_places': '2'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['invoice.Invoice']"}), + 'tax': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['invoice.VAT']"}), + 'time': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}) + }, + 'invoice.vat': { + 'Meta': {'object_name': 'VAT'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), + 'percentage': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '2'}) + } + } + + complete_apps = ['invoice'] \ No newline at end of file -- 2.39.5