forked from rapidpro/rapidpro
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove database triggers to maintain old notification counts
- Loading branch information
1 parent
e146f4a
commit fafeb99
Showing
4 changed files
with
22 additions
and
38 deletions.
There are no files selected for viewing
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,16 @@ | ||
# Generated by Django 5.1.2 on 2024-11-05 18:33 | ||
|
||
from django.db import migrations | ||
|
||
SQL = """ | ||
DROP TRIGGER temba_notifications_update_notificationcount ON notifications_notification; | ||
DROP FUNCTION temba_notification_on_change(); | ||
DROP FUNCTION temba_insert_notificationcount(INT, INT, INT); | ||
""" | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [("notifications", "0026_backfill_new_counts")] | ||
|
||
operations = [migrations.RunSQL(SQL)] |
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