Skip to content

Commit

Permalink
Update 0004_auto_20200902_2022.py
Browse files Browse the repository at this point in the history
Citus Postgres DB doesnt allow adding of new field with constrains on it.  Example Error attached

You can issue each command separately such as ALTER TABLE oauth2_provider_accesstoken ADD COLUMN id_token data_type; ALTER TABLE oauth2_provider_accesstoken ADD CONSTRAINT constraint_name CHECK (check_expression);
  • Loading branch information
abu-siddique-shipsy authored and n2ygk committed May 7, 2024
1 parent 0aa27a0 commit acd056f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oauth2_provider/migrations/0004_auto_20200902_2022.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class Migration(migrations.Migration):
},
),
migrations.AddField(
model_name='accesstoken',
name='id_token',
field=models.IntegerField(),
),
migrations.AlterField(
model_name='accesstoken',
name='id_token',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='access_token', to=oauth2_settings.ID_TOKEN_MODEL),
Expand Down

0 comments on commit acd056f

Please sign in to comment.