Fix migration error for pgsql: column "provider_id" cannot be cast automatically to type integer

This commit is contained in:
Valentin Samir 2016-07-06 13:50:02 +02:00
parent 502135d6ca
commit 4df2991079

View file

@ -28,7 +28,11 @@ class Migration(migrations.Migration):
'verbose_name_plural': 'identity providers', 'verbose_name_plural': 'identity providers',
}, },
), ),
migrations.AlterField( migrations.RemoveField(
model_name='federateduser',
name='provider'
),
migrations.AddField(
model_name='federateduser', model_name='federateduser',
name='provider', name='provider',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cas_server.FederatedIendityProvider'), field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cas_server.FederatedIendityProvider'),