diff --git a/changelog b/changelog index efc6cb67..2eb0ccd6 100644 --- a/changelog +++ b/changelog @@ -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. diff --git a/cqlengine/management.py b/cqlengine/management.py index a6ba47bc..388efbcd 100644 --- a/cqlengine/management.py +++ b/cqlengine/management.py @@ -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): diff --git a/docs/topics/manage_schemas.rst b/docs/topics/manage_schemas.rst index 1da5b1c9..5cedf8d7 100644 --- a/docs/topics/manage_schemas.rst +++ b/docs/topics/manage_schemas.rst @@ -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)