From 17ef44485d49fd1f02325063cad80840760cf16a Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Sat, 2 Sep 2017 16:48:53 +0200 Subject: [PATCH] Explicitly not that string types are unsupported. --- dataset/persistence/database.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dataset/persistence/database.py b/dataset/persistence/database.py index 67aa1c1..f125dce 100644 --- a/dataset/persistence/database.py +++ b/dataset/persistence/database.py @@ -175,6 +175,8 @@ class Database(object): table5 = db.create_table('population5', primary_id=False) """ + assert not isinstance(primary_type, six.string_types), \ + 'Text-based primary_type support is dropped, use db.types.' table_name = self._valid_table_name(table_name) self._acquire() try: