mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-13 09:28:14 +01:00
fix(migrations): Fix the 0034 migration for Postgres
This commit is contained in:
parent
455dd0ab2e
commit
6dd3b07dad
@ -7,6 +7,7 @@ def forwards_func(apps, schema_editor):
|
||||
EmailTemplate = apps.get_model("helpdesk", "EmailTemplate")
|
||||
db_alias = schema_editor.connection.alias
|
||||
EmailTemplate.objects.using(db_alias).create(
|
||||
id=EmailTemplate.objects.order_by('-id').first().id + 1, # because PG sequences are not reset
|
||||
template_name='merged',
|
||||
subject='(Merged)',
|
||||
heading='Ticket merged',
|
||||
@ -23,6 +24,7 @@ From now on, please answer on this ticket, or you can include the tag {{ ticket.
|
||||
locale='en'
|
||||
)
|
||||
EmailTemplate.objects.using(db_alias).create(
|
||||
id=EmailTemplate.objects.order_by('-id').first().id + 1, # because PG sequences are not reset
|
||||
template_name='merged',
|
||||
subject='(Fusionné)',
|
||||
heading='Ticket Fusionné',
|
||||
|
Loading…
Reference in New Issue
Block a user