From aa0f8c31b6500eb60fda6c6de4e9f6292348681a Mon Sep 17 00:00:00 2001 From: Ilya Gurov Date: Fri, 26 Aug 2022 01:52:03 -0700 Subject: [PATCH] Update README.rst See for more details: https://github.com/googleapis/python-spanner-sqlalchemy/issues/229#issuecomment-1228224509 --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 1a0707a7..5965c3e1 100644 --- a/README.rst +++ b/README.rst @@ -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.