Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django/contrib/postgres/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def database_forwards(self, app_label, schema_editor, from_state, to_state):
)

def database_backwards(self, app_label, schema_editor, from_state, to_state):
if not router.allow_migrate(
if schema_editor.connection.vendor != "postgresql" or not router.allow_migrate(
schema_editor.connection.alias, app_label, **self.hints
):
return
Expand Down
7 changes: 3 additions & 4 deletions docs/intro/tutorial02.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ additional metadata.
Django follows the :ref:`DRY Principle <dry>`. The goal is to define your
data model in one place and automatically derive things from it.

This includes the migrations - unlike in Ruby On Rails, for example,
migrations are entirely derived from your models file, and are essentially a
history that Django can roll through to update your database schema to
match your current models.
This includes the migrations, which are derived from your models file.
They form a history that Django uses to update your database schema
to match your current models.

In our poll app, we'll create two models: ``Question`` and ``Choice``. A
``Question`` has a question and a publication date. A ``Choice`` has two
Expand Down
Loading