Skip to content

Commit

Permalink
Wound the GUID size back a bit for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
xurble committed Jan 17, 2024
1 parent be80b09 commit cd95f2d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

### 1.0.9
- Decreases the size of GUID slightly, was not compatible with MySQL

### 1.0.8
- Increases the size of GUIDs
- Adds support for Django 5
Expand Down
18 changes: 18 additions & 0 deletions feeds/migrations/0011_alter_post_guid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.1 on 2024-01-17 21:00

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('feeds', '0010_enclosure_description_enclosure_medium'),
]

operations = [
migrations.AlterField(
model_name='post',
name='guid',
field=models.CharField(blank=True, db_index=True, max_length=768, null=True),
),
]
2 changes: 1 addition & 1 deletion feeds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def health_box(self):


class Post(models.Model):
GUID_MAX_LENGTH = 1024
GUID_MAX_LENGTH = 768
# an entry in a feed

source = models.ForeignKey(Source, on_delete=models.CASCADE, related_name='posts')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name='django-feed-reader',
version='1.0.8',
version='1.0.9',
description='An RSS feed reading library for Django.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit cd95f2d

Please sign in to comment.