Added scripts and data for importing links from gazeta and wikipedia.
[wolnelektury.git] / apps / catalogue / migrations / 0004_add_gazeta_links.py
1 # -*- coding: utf-8 -*-
2 from south.db import db
3 from django.db import models
4
5
6 class Migration:    
7     def forwards(self):
8         db.add_column('catalogue_tag', 'gazeta_link', models.CharField(blank=True,  max_length=240))
9         db.add_column('catalogue_book', 'gazeta_link', models.CharField(blank=True,  max_length=240))
10     
11     def backwards(self):
12         db.delete_column('catalogue_tag', 'gazeta_link')
13         db.delete_column('catalogue_book', 'gazeta_link')