forked from samuelclay/NewsBlur
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumping up duplicate address length for feeds.
- Loading branch information
1 parent
4891910
commit cb30fe2
Showing
4 changed files
with
96 additions
and
6 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,86 @@ | ||
# -*- 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): | ||
|
||
# Changing field 'DuplicateFeed.duplicate_link' | ||
db.alter_column('rss_feeds_duplicatefeed', 'duplicate_link', self.gf('django.db.models.fields.CharField')(max_length=764, null=True)) | ||
|
||
# Changing field 'DuplicateFeed.duplicate_address' | ||
db.alter_column('rss_feeds_duplicatefeed', 'duplicate_address', self.gf('django.db.models.fields.CharField')(max_length=764)) | ||
|
||
def backwards(self, orm): | ||
|
||
# Changing field 'DuplicateFeed.duplicate_link' | ||
db.alter_column('rss_feeds_duplicatefeed', 'duplicate_link', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)) | ||
|
||
# Changing field 'DuplicateFeed.duplicate_address' | ||
db.alter_column('rss_feeds_duplicatefeed', 'duplicate_address', self.gf('django.db.models.fields.CharField')(max_length=255)) | ||
|
||
models = { | ||
'rss_feeds.duplicatefeed': { | ||
'Meta': {'object_name': 'DuplicateFeed'}, | ||
'duplicate_address': ('django.db.models.fields.CharField', [], {'max_length': '764', 'db_index': 'True'}), | ||
'duplicate_feed_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'db_index': 'True'}), | ||
'duplicate_link': ('django.db.models.fields.CharField', [], {'max_length': '764', 'null': 'True', 'db_index': 'True'}), | ||
'feed': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'duplicate_addresses'", 'to': "orm['rss_feeds.Feed']"}), | ||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}) | ||
}, | ||
'rss_feeds.feed': { | ||
'Meta': {'ordering': "['feed_title']", 'object_name': 'Feed', 'db_table': "'feeds'"}, | ||
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'db_index': 'True'}), | ||
'active_premium_subscribers': ('django.db.models.fields.IntegerField', [], {'default': '-1', 'db_index': 'True'}), | ||
'active_subscribers': ('django.db.models.fields.IntegerField', [], {'default': '-1', 'db_index': 'True'}), | ||
'average_stories_per_month': ('django.db.models.fields.IntegerField', [], {'default': '0'}), | ||
'branch_from_feed': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rss_feeds.Feed']", 'null': 'True', 'blank': 'True'}), | ||
'creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}), | ||
'days_to_trim': ('django.db.models.fields.IntegerField', [], {'default': '90'}), | ||
'errors_since_good': ('django.db.models.fields.IntegerField', [], {'default': '0'}), | ||
'etag': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}), | ||
'exception_code': ('django.db.models.fields.IntegerField', [], {'default': '0'}), | ||
'favicon_color': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}), | ||
'favicon_not_found': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'feed_address': ('django.db.models.fields.URLField', [], {'max_length': '764', 'db_index': 'True'}), | ||
'feed_address_locked': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}), | ||
'feed_link': ('django.db.models.fields.URLField', [], {'default': "''", 'max_length': '1000', 'null': 'True', 'blank': 'True'}), | ||
'feed_link_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'feed_title': ('django.db.models.fields.CharField', [], {'default': "'[Untitled]'", 'max_length': '255', 'null': 'True', 'blank': 'True'}), | ||
'fetched_once': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'has_feed_exception': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}), | ||
'has_page': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | ||
'has_page_exception': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}), | ||
'hash_address_and_link': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64', 'db_index': 'True'}), | ||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'is_push': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}), | ||
'known_good': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}), | ||
'last_load_time': ('django.db.models.fields.IntegerField', [], {'default': '0'}), | ||
'last_modified': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), | ||
'last_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), | ||
'min_to_decay': ('django.db.models.fields.IntegerField', [], {'default': '0'}), | ||
'next_scheduled_update': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), | ||
'num_subscribers': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), | ||
'premium_subscribers': ('django.db.models.fields.IntegerField', [], {'default': '-1'}), | ||
'queued_date': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}), | ||
's3_icon': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}), | ||
's3_page': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}), | ||
'stories_last_month': ('django.db.models.fields.IntegerField', [], {'default': '0'}) | ||
}, | ||
'rss_feeds.feeddata': { | ||
'Meta': {'object_name': 'FeedData'}, | ||
'feed': ('utils.fields.AutoOneToOneField', [], {'related_name': "'data'", 'unique': 'True', 'to': "orm['rss_feeds.Feed']"}), | ||
'feed_classifier_counts': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}), | ||
'feed_tagline': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}), | ||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'popular_authors': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'null': 'True', 'blank': 'True'}), | ||
'popular_tags': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}), | ||
'story_count_history': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}) | ||
} | ||
} | ||
|
||
complete_apps = ['rss_feeds'] |
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
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
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