(partition, clustering)
| 297 | |
| 298 | if model_partition != meta_partition or model_clustering != meta_clustering: |
| 299 | def _pk_string(partition, clustering): |
| 300 | return "PRIMARY KEY (({0}){1})".format(', '.join(partition), ', ' + ', '.join(clustering) if clustering else '') |
| 301 | raise CQLEngineException("Model {0} PRIMARY KEY composition does not match existing table {1}. " |
| 302 | "Model: {2}; Table: {3}. " |
| 303 | "Update model or drop the table.".format(model, model.column_family_name(), |