From 7b0bd55200b118aa99d0c02cb2b0093035f7eedc Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Thu, 30 Apr 2009 02:40:11 +0000 Subject: [PATCH] * Change the CommChannelMessage's 'message' field from a CharField to a TextField. This will allow messages that are greater than 255 characters to be stored. You'll want to drop your channels_commchannelmessage table and run syncdb again. * Update the list of database drivers in the comments in config_defaults.py. --- src/channels/models.py | 2 +- src/config_defaults.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channels/models.py b/src/channels/models.py index b7be4db4e5..9a0a81e836 100644 --- a/src/channels/models.py +++ b/src/channels/models.py @@ -97,7 +97,7 @@ class CommChannelMessage(models.Model): A single logged channel message. """ channel = models.ForeignKey(CommChannel, related_name="msg_channel") - message = models.CharField(max_length=255) + message = models.TextField() date_sent = models.DateTimeField(editable=False, auto_now_add=True) def __str__(self): diff --git a/src/config_defaults.py b/src/config_defaults.py index 4b86ebd8fb..12b19a34d5 100644 --- a/src/config_defaults.py +++ b/src/config_defaults.py @@ -53,7 +53,7 @@ SCRIPT_DEFAULT_OBJECT = 'base.basicobject' # the SCRIPT_IMPORT_PATH left off. SCRIPT_DEFAULT_PLAYER = 'base.basicplayer' -# 'postgresql', 'mysql', 'mysql_old', 'sqlite3' or 'ado_mssql'. +# 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3', and 'oracle'. DATABASE_ENGINE = 'sqlite3' # Database name, or path to DB file if using sqlite3. DATABASE_NAME = os.path.join(GAME_DIR, 'evennia.db3')