Added CRUD endpoints for each application.
This commit is contained in:
20
app/apps/accounts/migrations/0005_unique_user_email_index.py
Normal file
20
app/apps/accounts/migrations/0005_unique_user_email_index.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from django.conf import settings
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("accounts", "0004_delete_account"),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunSQL(
|
||||
sql=(
|
||||
"CREATE UNIQUE INDEX IF NOT EXISTS auth_user_email_uniq "
|
||||
"ON auth_user (email);"
|
||||
),
|
||||
reverse_sql="DROP INDEX IF EXISTS auth_user_email_uniq;",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user