-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added migrations check to pre-commit config.
Added `make dbrun` to run postgres container Generated missing migrations and ran `make db-setup` to prove migrations still run on a fresh database.
- Loading branch information
Del Hyman-Jones
committed
Aug 30, 2024
1 parent
a75f6cb
commit 6048b77
Showing
4 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Generated by Django 3.2.19 on 2024-08-30 09:02 | ||
|
||
import oauth2_provider.generators | ||
import oauth2_provider.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('drf_integrations', '0007_oauth_provider_150_upgrade'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='application', | ||
name='allowed_origins', | ||
field=models.TextField( | ||
blank=True, | ||
default='', | ||
help_text='Allowed origins list to enable CORS, space separated', | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='application', | ||
name='hash_client_secret', | ||
field=models.BooleanField(default=True), | ||
), | ||
migrations.AddField( | ||
model_name='application', | ||
name='post_logout_redirect_uris', | ||
field=models.TextField( | ||
blank=True, default='', help_text='Allowed Post Logout URIs list, space separated' | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='accesstoken', | ||
name='token', | ||
field=models.CharField(db_index=True, max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='application', | ||
name='client_secret', | ||
field=oauth2_provider.models.ClientSecretField( | ||
blank=True, | ||
db_index=True, | ||
default=oauth2_provider.generators.generate_client_secret, | ||
help_text='Hashed on Save. Copy it now if this is a new secret.', | ||
max_length=255, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters