diff --git a/README.md b/README.md index 09e20142..a1242e34 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ class ExampleModel(Model): >>> connection.setup(['127.0.0.1:9160']) #...and create your CQL table ->>> from cqlengine.management import create_table ->>> create_table(ExampleModel) +>>> from cqlengine.management import sync_table +>>> sync_table(ExampleModel) #now we can create some rows: >>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now()) diff --git a/docs/index.rst b/docs/index.rst index 1122599c..b97360eb 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,7 +17,7 @@ Contents: .. toctree:: :maxdepth: 2 - + topics/models topics/queryset topics/columns @@ -46,8 +46,8 @@ Getting Started >>> connection.setup(['127.0.0.1:9160']) #...and create your CQL table - >>> from cqlengine.management import create_table - >>> create_table(ExampleModel) + >>> from cqlengine.management import sync_table + >>> sync_table(ExampleModel) #now we can create some rows: >>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now())