removed references to create_missing_keyspace #323

This commit is contained in:
Jon Haddad
2015-01-16 10:15:37 -08:00
parent ab61fe9ecb
commit fe6cfc1e8c
3 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
CHANGELOG
0.21.1
removed references to create_missing_keyspace
0.21.0
Create keyspace no longer defaults to SimpleStrategy with 3 replicas. It must be manually specified.

View File

@@ -59,7 +59,7 @@ def delete_keyspace(name):
if name in cluster.metadata.keyspaces:
execute("DROP KEYSPACE {}".format(name))
def create_table(model, create_missing_keyspace=True):
def create_table(model):
raise CQLEngineException("create_table is deprecated, please use sync_table")
def sync_table(model):
@@ -68,10 +68,6 @@ def sync_table(model):
Note that the attributes removed from the model are not deleted on the database.
They become effectively ignored by (will not show up on) the model.
:param create_missing_keyspace: (Defaults to True) Flags to us that we need to create missing keyspace
mentioned in the model automatically.
:type create_missing_keyspace: bool
"""
if not issubclass(model, Model):

View File

@@ -26,12 +26,10 @@ Once a connection has been made to Cassandra, you can use the functions in ``cql
deletes the keyspace with the given name
.. function:: sync_table(model [, create_missing_keyspace=True])
.. function:: sync_table(model)
:param model: the :class:`~cqlengine.model.Model` class to make a table with
:type model: :class:`~cqlengine.model.Model`
:param create_missing_keyspace: *Optional* If True, the model's keyspace will be created if it does not already exist. Defaults to ``True``
:type create_missing_keyspace: bool
syncs a python model to cassandra (creates & alters)