Coverage for ivatar/ivataraccount/migrations/0022_pgcrypto_extension.py: 60%

10 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-21 11:51 +0000

1# Generated manually 

2 

3from django.db import migrations 

4try: 

5 from django.contrib.postgres.operations import CryptoExtension 

6except ImportError: 

7 # If for some reason it's not available (e.g. older Django or missing app), 

8 # we fall back to a dummy operation that does nothing. 

9 # But since we added it to INSTALLED_APPS, it should be fine. 

10 class CryptoExtension(migrations.RunSQL): 

11 def __init__(self): 

12 super().__init__("SELECT 1;") 

13 

14class Migration(migrations.Migration): 

15 

16 dependencies = [ 

17 ('ivataraccount', '0021_add_performance_indexes'), 

18 ] 

19 

20 operations = [ 

21 CryptoExtension(), 

22 ]