Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
See for more details: #229 (comment)
  • Loading branch information
IlyaFaer authored Aug 26, 2022
1 parent f9e8ebe commit aa0f8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ primary key:
version_table_pk=False, # don't use primary key in the versions table
)
As Spanner restricts changing a primary key value, not setting the flag
to ``False`` can cause migration problems.
As Spanner restricts changing a primary key value, not setting the ``version_table_pk`` flag
to ``False`` can cause migration problems. If ``alembic_versions`` table was already created with a primary key, setting the flag to ``False`` will not work, because the flag is only applied on table creation.

Also notice that DDL statements in Spanner are not transactional and will not be automatically reverted in case of a migration fail.

Expand Down

0 comments on commit aa0f8c3

Please sign in to comment.