* 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.
This commit is contained in:
Greg Taylor 2009-04-30 02:40:11 +00:00
parent 9954700bdd
commit 7b0bd55200
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -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')