Actually I want that to be a charfield so I can bind it to claimID later
This commit is contained in:
parent
01bdcb4f7d
commit
587d73f070
19
odyseescraper/migrations/0002_alter_odyseerelease_id.py
Normal file
19
odyseescraper/migrations/0002_alter_odyseerelease_id.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.1.5 on 2025-01-19 05:11
|
||||
|
||||
import uuid
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('odyseescraper', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='odyseerelease',
|
||||
name='id',
|
||||
field=models.CharField(default=uuid.uuid4, editable=False, max_length=512, primary_key=True, serialize=False),
|
||||
),
|
||||
]
|
@ -8,7 +8,7 @@ class OdyseeChannel(models.Model):
|
||||
handle = models.CharField(max_length=1024)
|
||||
|
||||
class OdyseeRelease(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
id = models.CharField(primary_key=True, max_length=512, default=uuid.uuid4, editable=False)
|
||||
channel = models.ForeignKey(OdyseeChannel, on_delete=models.CASCADE)
|
||||
name = models.CharField(max_length=1024)
|
||||
description = models.TextField()
|
||||
|
Loading…
x
Reference in New Issue
Block a user