Change all CharField to TextField
I do not know how long these fields would be + there is not much of a performance difference from postgres point of view which is our preferred database
This commit is contained in:
parent
223b2650ad
commit
7726bc7c41
1 changed files with 18 additions and 18 deletions
|
@ -9,7 +9,7 @@ from django.db import models
|
||||||
|
|
||||||
|
|
||||||
class AlembicVersion(models.Model):
|
class AlembicVersion(models.Model):
|
||||||
version_num = models.CharField()
|
version_num = models.TextField()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
managed = False
|
||||||
|
@ -18,7 +18,7 @@ class AlembicVersion(models.Model):
|
||||||
|
|
||||||
class Field(models.Model):
|
class Field(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
name = models.CharField(blank=True, null=True)
|
name = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'field'
|
db_table = 'field'
|
||||||
|
@ -35,7 +35,7 @@ class FieldsPeople(models.Model):
|
||||||
|
|
||||||
class Method(models.Model):
|
class Method(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
name = models.CharField(blank=True, null=True)
|
name = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'method'
|
db_table = 'method'
|
||||||
|
@ -53,14 +53,14 @@ class MethodsPeople(models.Model):
|
||||||
class Person(models.Model):
|
class Person(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
source_id = models.IntegerField(blank=True, null=True)
|
source_id = models.IntegerField(blank=True, null=True)
|
||||||
title = models.CharField(blank=True, null=True)
|
title = models.TextField(blank=True, null=True)
|
||||||
first_name = models.CharField(blank=True, null=True)
|
first_name = models.TextField(blank=True, null=True)
|
||||||
last_name = models.CharField(blank=True, null=True)
|
last_name = models.TextField(blank=True, null=True)
|
||||||
organisation = models.CharField(blank=True, null=True)
|
organisation = models.TextField(blank=True, null=True)
|
||||||
position = models.CharField(blank=True, null=True)
|
position = models.TextField(blank=True, null=True)
|
||||||
country = models.CharField(blank=True, null=True)
|
country = models.TextField(blank=True, null=True)
|
||||||
contact_email = models.CharField(blank=True, null=True)
|
contact_email = models.TextField(blank=True, null=True)
|
||||||
personal_url = models.CharField(blank=True, null=True)
|
personal_url = models.TextField(blank=True, null=True)
|
||||||
biography = models.TextField(blank=True, null=True)
|
biography = models.TextField(blank=True, null=True)
|
||||||
field_indexer = models.TextField(db_column='_indexer', blank=True, null=True) # Field renamed because it started with '_'.
|
field_indexer = models.TextField(db_column='_indexer', blank=True, null=True) # Field renamed because it started with '_'.
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ class Person(models.Model):
|
||||||
class Range(models.Model):
|
class Range(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
source_id = models.IntegerField(blank=True, null=True)
|
source_id = models.IntegerField(blank=True, null=True)
|
||||||
gmba_id = models.CharField(blank=True, null=True)
|
gmba_id = models.TextField(blank=True, null=True)
|
||||||
name = models.CharField(blank=True, null=True)
|
name = models.TextField(blank=True, null=True)
|
||||||
countries = models.CharField(blank=True, null=True)
|
countries = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'range'
|
db_table = 'range'
|
||||||
|
@ -91,8 +91,8 @@ class RangesPeople(models.Model):
|
||||||
class Resource(models.Model):
|
class Resource(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
source_id = models.IntegerField(blank=True, null=True)
|
source_id = models.IntegerField(blank=True, null=True)
|
||||||
title = models.CharField(blank=True, null=True)
|
title = models.TextField(blank=True, null=True)
|
||||||
url = models.CharField(blank=True, null=True)
|
url = models.TextField(blank=True, null=True)
|
||||||
citation = models.TextField(blank=True, null=True)
|
citation = models.TextField(blank=True, null=True)
|
||||||
abstract = models.TextField(blank=True, null=True)
|
abstract = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ class ResourcesPeople(models.Model):
|
||||||
|
|
||||||
class Scale(models.Model):
|
class Scale(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
name = models.CharField(blank=True, null=True)
|
name = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'scale'
|
db_table = 'scale'
|
||||||
|
@ -137,7 +137,7 @@ class TaxaPeople(models.Model):
|
||||||
|
|
||||||
class Taxon(models.Model):
|
class Taxon(models.Model):
|
||||||
id = models.AutoField(primary_key=True)
|
id = models.AutoField(primary_key=True)
|
||||||
name = models.CharField(blank=True, null=True)
|
name = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'taxon'
|
db_table = 'taxon'
|
||||||
|
|
Loading…
Reference in a new issue