Skip to content

Commit ae28def

Browse files
committed
Make sure 0069_add_service_accounts_to_group migration uses the primary DB (#24483)
1 parent eb0ad17 commit ae28def

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/olympia/scanners/migrations/0069_add_service_accounts_to_group.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from django.db import migrations
22

3+
from olympia.amo.decorators import use_primary_db
34
from olympia.constants.scanners import SCANNER_SERVICE_ACCOUNTS_GROUP
45

56

7+
@use_primary_db
68
def add_service_accounts_to_group(apps, schema_editor):
79
Group = apps.get_model('access', 'Group')
810
GroupUser = apps.get_model('access', 'GroupUser')

0 commit comments

Comments
 (0)