summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-29 18:27:34 +0000
committerGerrit Code Review <review@openstack.org>2014-03-29 18:27:34 +0000
commitfad07f1c8e8cc8cd09f15dbe11a8fa23938db759 (patch)
tree38d8db0c37097029d408d007d6aa6145086e2b49
parente20068490bc760f8c4ffb11878ffca8a780b51a7 (diff)
parent82f739b96f71f142f862c5f8628a4c5d0fd7edc0 (diff)
downloadsqalchemy-migrate-fad07f1c8e8cc8cd09f15dbe11a8fa23938db759.tar.gz
Merge "Convert tabs to spaces in a couple of rst files"
-rw-r--r--doc/source/changeset.rst20
-rw-r--r--doc/source/versioning.rst2
2 files changed, 11 insertions, 11 deletions
diff --git a/doc/source/changeset.rst b/doc/source/changeset.rst
index d65a326..8aa8307 100644
--- a/doc/source/changeset.rst
+++ b/doc/source/changeset.rst
@@ -189,30 +189,30 @@ The following rundowns are true for all constraints classes:
cons = PrimaryKeyConstraint('id', 'num', table=self.table)
- # Create the constraint
- cons.create()
+ # Create the constraint
+ cons.create()
- # Drop the constraint
- cons.drop()
+ # Drop the constraint
+ cons.drop()
You can also pass in :class:`~sqlalchemy.schema.Column` objects (and table
argument can be left out):
.. code-block:: python
- cons = PrimaryKeyConstraint(col1, col2)
+ cons = PrimaryKeyConstraint(col1, col2)
#. Some dialects support ``CASCADE`` option when dropping constraints:
.. code-block:: python
- cons = PrimaryKeyConstraint(col1, col2)
+ cons = PrimaryKeyConstraint(col1, col2)
- # Create the constraint
- cons.create()
+ # Create the constraint
+ cons.create()
- # Drop the constraint
- cons.drop(cascade=True)
+ # Drop the constraint
+ cons.drop(cascade=True)
.. note::
SQLAlchemy Migrate will try to guess the name of the constraints for
diff --git a/doc/source/versioning.rst b/doc/source/versioning.rst
index 821280b..7b30cd3 100644
--- a/doc/source/versioning.rst
+++ b/doc/source/versioning.rst
@@ -140,7 +140,7 @@ Our first change script will create a simple table
account = Table(
'account', meta,
- Column('id', Integer, primary_key=True),
+ Column('id', Integer, primary_key=True),
Column('login', String(40)),
Column('passwd', String(40)),
)