euscanwww: make it work with MySQL
unique indexes length must be <= 255 Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
parent
093cb4da47
commit
0e32ccf46e
@ -11,7 +11,7 @@ class Migration(SchemaMigration):
|
|||||||
# Adding model 'RefreshPackageQuery'
|
# Adding model 'RefreshPackageQuery'
|
||||||
db.create_table('djeuscan_refreshpackagequery', (
|
db.create_table('djeuscan_refreshpackagequery', (
|
||||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||||
('query', self.gf('django.db.models.fields.CharField')(unique=True, max_length=256)),
|
('query', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
|
||||||
('priority', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
('priority', self.gf('django.db.models.fields.IntegerField')(default=0)),
|
||||||
))
|
))
|
||||||
db.send_create_signal('djeuscan', ['RefreshPackageQuery'])
|
db.send_create_signal('djeuscan', ['RefreshPackageQuery'])
|
||||||
@ -104,7 +104,7 @@ class Migration(SchemaMigration):
|
|||||||
'Meta': {'object_name': 'RefreshPackageQuery'},
|
'Meta': {'object_name': 'RefreshPackageQuery'},
|
||||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||||
'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
'priority': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||||||
'query': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '256'})
|
'query': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
|
||||||
},
|
},
|
||||||
'djeuscan.version': {
|
'djeuscan.version': {
|
||||||
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
'Meta': {'unique_together': "(['package', 'slot', 'revision', 'version', 'overlay'],)", 'object_name': 'Version'},
|
||||||
@ -136,4 +136,4 @@ class Migration(SchemaMigration):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
complete_apps = ['djeuscan']
|
complete_apps = ['djeuscan']
|
||||||
|
@ -269,7 +269,7 @@ class MaintainerLog(Log):
|
|||||||
|
|
||||||
|
|
||||||
class RefreshPackageQuery(models.Model):
|
class RefreshPackageQuery(models.Model):
|
||||||
query = models.CharField(max_length=256, unique=True)
|
query = models.CharField(max_length=255, unique=True)
|
||||||
priority = models.IntegerField(default=0)
|
priority = models.IntegerField(default=0)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user