mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30240 -- Added SHA1, SHA224, SHA256, SHA384, and SHA512 database functions.
Thanks Mariusz Felisiak and Tim Graham for reviews.
This commit is contained in:
committed by
Mariusz Felisiak
parent
0193bf874f
commit
0b70985f42
13
tests/db_functions/migrations/0001_setup_extensions.py
Normal file
13
tests/db_functions/migrations/0001_setup_extensions.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from unittest import mock
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
try:
|
||||
from django.contrib.postgres.operations import CryptoExtension
|
||||
except ImportError:
|
||||
CryptoExtension = mock.Mock()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
# Required for the SHA database functions.
|
||||
operations = [CryptoExtension()]
|
||||
Reference in New Issue
Block a user