Skip to content

Commit

Permalink
Merge pull request #617 from UnitapApp/fix/migrations-error
Browse files Browse the repository at this point in the history
fixed migrations
  • Loading branch information
PooyaFekri authored Sep 3, 2024
2 parents 63505ed + b89e323 commit 3ef8154
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Migration(migrations.Migration):

dependencies = [
('prizetap', '0076_alter_constraint_name'),
('prizetap', '0077_alter_constraint_name'),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion prizetap/migrations/0078_alter_constraint_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_prizetap_constraint(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('prizetap', '0077_alter_constraint_name'),
('prizetap', '0077_remove_raffle_image_url_raffle_image'),
]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Migration(migrations.Migration):

dependencies = [
('tokenTap', '0062_alter_constraint_name'),
('tokenTap', '0063_alter_constraint_name'),
]

operations = [
Expand All @@ -19,7 +19,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='tokendistribution',
name='token_image',
field=cloudflare_images.field.CloudflareImagesField(blank=True, upload_to='', variant='public'),
field=cloudflare_images.field.CloudflareImagesField(blank=True, null=True, upload_to='', variant='public'),
),
migrations.RenameField(
model_name='tokendistribution',
Expand All @@ -29,6 +29,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='tokendistribution',
name='image',
field=cloudflare_images.field.CloudflareImagesField(blank=True, upload_to='', variant='public'),
field=cloudflare_images.field.CloudflareImagesField(blank=True, null=True, upload_to='', variant='public'),
),
]
2 changes: 1 addition & 1 deletion tokenTap/migrations/0064_alter_constraint_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create_tokentap_constraint(apps, schema_editor):
class Migration(migrations.Migration):

dependencies = [
('tokenTap', '0063_alter_constraint_name'),
('tokenTap', '0063_remove_tokendistribution_token_image_url_and_more'),
]

operations = [
Expand Down
4 changes: 2 additions & 2 deletions tokenTap/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class Status(models.TextChoices):
twitter_url = models.URLField(max_length=255, null=True, blank=True)
email_url = models.EmailField(max_length=255)
telegram_url = models.URLField(max_length=255, null=True, blank=True)
image = CloudflareImagesField(variant="public", blank=True)
token_image = CloudflareImagesField(variant="public", blank=True)
image = CloudflareImagesField(variant="public", null=True, blank=True)
token_image = CloudflareImagesField(variant="public", null=True, blank=True)

token = models.CharField(max_length=100)
token_address = models.CharField(max_length=255)
Expand Down

0 comments on commit 3ef8154

Please sign in to comment.