-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use constraints instead of unique_together
- Loading branch information
1 parent
671d425
commit 030dfe8
Showing
5 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
plain-flags/plain/flags/migrations/0002_alter_flagresult_unique_together_and_more.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,23 @@ | ||
# Generated by Plain 0.3.0 on 2024-08-16 16:46 | ||
|
||
from plain import models | ||
from plain.models import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("plainflags", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name="flagresult", | ||
unique_together=set(), | ||
), | ||
migrations.AddConstraint( | ||
model_name="flagresult", | ||
constraint=models.UniqueConstraint( | ||
fields=("flag", "key"), name="unique_flag_result_key" | ||
), | ||
), | ||
] |
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 @@ | ||
urlpatterns = [] |
25 changes: 25 additions & 0 deletions
25
plain-oauth/plain/oauth/migrations/0005_alter_oauthconnection_unique_together_and_more.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,25 @@ | ||
# Generated by Plain 0.3.0 on 2024-08-16 16:46 | ||
|
||
from plain import models | ||
from plain.models import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("users", "__first__"), | ||
("plainoauth", "0004_alter_oauthconnection_access_token_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name="oauthconnection", | ||
unique_together=set(), | ||
), | ||
migrations.AddConstraint( | ||
model_name="oauthconnection", | ||
constraint=models.UniqueConstraint( | ||
fields=("provider_key", "provider_user_id"), | ||
name="unique_oauth_provider_user_id", | ||
), | ||
), | ||
] |
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