-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add app_id to SafeApp model - app_id is the new primary key (previous primary key was the url) - Remove safe-apps fixture – it does not correspond with the new model and the autogenerated primary key
- Loading branch information
Showing
6 changed files
with
51 additions
and
309 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
# Generated by Django 3.2.4 on 2021-06-28 14:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("safe_apps", "0003_alter_safeapp_provider"), | ||
] | ||
|
||
operations = [ | ||
# Remove Primary Key constraint from safeapp.url | ||
migrations.AlterField( | ||
model_name="safeapp", | ||
name="url", | ||
field=models.URLField(), | ||
), | ||
# Add safeapp.app_id as primary key | ||
migrations.AddField( | ||
model_name="safeapp", | ||
name="app_id", | ||
field=models.BigAutoField(primary_key=True, serialize=False), | ||
preserve_default=False, | ||
), | ||
] |
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
Oops, something went wrong.