updated readme and index to use sync_table rather than create_table
This commit is contained in:
		| @@ -37,8 +37,8 @@ class ExampleModel(Model): | |||||||
| >>> connection.setup(['127.0.0.1:9160']) | >>> connection.setup(['127.0.0.1:9160']) | ||||||
|  |  | ||||||
| #...and create your CQL table | #...and create your CQL table | ||||||
| >>> from cqlengine.management import create_table | >>> from cqlengine.management import sync_table | ||||||
| >>> create_table(ExampleModel) | >>> sync_table(ExampleModel) | ||||||
|  |  | ||||||
| #now we can create some rows: | #now we can create some rows: | ||||||
| >>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now()) | >>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now()) | ||||||
|   | |||||||
| @@ -46,8 +46,8 @@ Getting Started | |||||||
|         >>> connection.setup(['127.0.0.1:9160']) |         >>> connection.setup(['127.0.0.1:9160']) | ||||||
|  |  | ||||||
|         #...and create your CQL table |         #...and create your CQL table | ||||||
|         >>> from cqlengine.management import create_table |         >>> from cqlengine.management import sync_table | ||||||
|         >>> create_table(ExampleModel) |         >>> sync_table(ExampleModel) | ||||||
|  |  | ||||||
|         #now we can create some rows: |         #now we can create some rows: | ||||||
|         >>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now()) |         >>> em1 = ExampleModel.create(example_type=0, description="example1", created_at=datetime.now()) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jon Haddad
					Jon Haddad