Skip to content

Commit 6fb66b0

Browse files
committed
Don't forget to migrate with --database encrypted
1 parent e8b7ac1 commit 6fb66b0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/howto/queryable-encryption.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ Configuring the ``encrypted_fields_map``
198198
When you :ref:`configure an encrypted database connection
199199
<qe-configuring-databases-setting>` without specifying an
200200
``encrypted_fields_map``, Django MongoDB Backend will create encrypted
201-
collections for you when you run ``python manage.py migrate``.
201+
collections for you when you run ``python manage.py migrate --database
202+
encrypted``.
202203

203204
Encryption keys for encrypted fields are stored in the key vault
204205
:ref:`specified in the Django settings <qe-configuring-kms>`. To see the keys

docs/topics/queryable-encryption.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ Django:
5757
5858
5959
Once you have defined your models, create the migrations with ``python manage.py
60-
makemigrations`` and run the migrations with ``python manage.py migrate``. Then
61-
create and manipulate instances of the data just like any other Django model
62-
data. The fields will automatically handle encryption and decryption, ensuring
63-
that :ref:`sensitive data is stored securely in the database
64-
<manual:qe-features-encryption-at-rest>`.
60+
makemigrations`` and run the migrations with ``python manage.py migrate
61+
--database encrypted``. Then create and manipulate instances of the data just
62+
like any other Django model data. The fields will automatically handle
63+
encryption and decryption, ensuring that :ref:`sensitive data is stored securely
64+
in the database <manual:qe-features-encryption-at-rest>`.
6565

6666
Querying encrypted fields
6767
-------------------------

0 commit comments

Comments
 (0)