Skip to content

Commit

Permalink
Duplicate length for symbol and name on Token
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Feb 17, 2020
1 parent 881a3e7 commit e5be4d5
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ C_FORCE_ROOT=true
DEBUG=0
USE_DOCKER=True
CELERY_BROKER_URL=redis://redis/0
DATABASE_URL=psql://postgres@db:5432/postgres
DATABASE_URL=psql://postgres:postgres@db:5432/postgres
DJANGO_ALLOWED_HOSTS=*
DJANGO_SECRET_KEY=test-secret#-!key
DJANGO_SETTINGS_MODULE=config.settings.production
Expand Down
2 changes: 1 addition & 1 deletion .env_ganache
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ C_FORCE_ROOT=true
DEBUG=0
USE_DOCKER=True
CELERY_BROKER_URL=redis://redis/0
DATABASE_URL=psql://postgres@db:5432/postgres
DATABASE_URL=psql://postgres:postgres@db:5432/postgres
DJANGO_ALLOWED_HOSTS=*
DJANGO_SECRET_KEY=test-secret#-!key
DJANGO_SETTINGS_MODULE=config.settings.local
Expand Down
2 changes: 1 addition & 1 deletion .env_local
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ C_FORCE_ROOT=true
DEBUG=0
USE_DOCKER=True
CELERY_BROKER_URL=redis://localhost/0
DATABASE_URL=psql://postgres@localhost:5432/postgres
DATABASE_URL=psql://postgres:postgres@localhost:5432/postgres
DJANGO_SECRET_KEY=test-secret#-!key
DJANGO_SETTINGS_MODULE=config.settings.test
ETHEREUM_NODE_URL=http://localhost:8545
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
image: postgres:10-alpine
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgres

web:
build:
Expand Down
23 changes: 23 additions & 0 deletions safe_relay_service/tokens/migrations/0013_auto_20200217_0942.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.2.10 on 2020-02-17 09:42

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('tokens', '0012_priceoracle_configuration'),
]

operations = [
migrations.AlterField(
model_name='token',
name='name',
field=models.CharField(max_length=60),
),
migrations.AlterField(
model_name='token',
name='symbol',
field=models.CharField(max_length=60),
),
]
4 changes: 2 additions & 2 deletions safe_relay_service/tokens/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def gas_tokens(self):
class Token(models.Model):
objects = TokenQuerySet.as_manager()
address = EthereumAddressField(primary_key=True)
name = models.CharField(max_length=30)
symbol = models.CharField(max_length=30)
name = models.CharField(max_length=60)
symbol = models.CharField(max_length=60)
description = models.TextField(blank=True)
decimals = models.PositiveSmallIntegerField()
logo_uri = models.CharField(blank=True, max_length=300)
Expand Down

0 comments on commit e5be4d5

Please sign in to comment.