-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
checks/migrations/0016_domaintestappsecpriv_securitytxt_found_url.py
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,27 @@ | ||
# AddField Generated by Django 3.2.24 on 2024-03-09 12:49 | ||
# Manually created SQL migration to handle old reports | ||
|
||
from django.db import migrations #, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("checks", "0015_auto_20240212_1616"), | ||
] | ||
|
||
operations = [ | ||
# migrations.AddField( | ||
# model_name='domaintestappsecpriv', | ||
# name='securitytxt_found_url', | ||
# field=models.CharField(max_length=8000, null=True), | ||
# ), | ||
migrations.RunSQL( | ||
sql=[ | ||
"ALTER TABLE checks_domaintestappsecpriv ADD COLUMN securitytxt_found_url VARCHAR(8000);", | ||
"UPDATE checks_domaintestappsecpriv SET securitytxt_found_url=securitytxt_found_host WHERE securitytxt_enabled;", | ||
], | ||
reverse_sql=[ | ||
"ALTER TABLE checks_domaintestappsecpriv DROP COLUMN securitytxt_found_url;", | ||
], | ||
), | ||
] |
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
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