mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 14:56:30 +01:00
Part 1 of initial database population re-factor, along with a comsys model change. DO NOT UPDATE TO THIS IN PRODUCTION ENVIRONMENTS YET! Wait for the all-clear.
This commit is contained in:
parent
8ebea8c22e
commit
c0ebbc3967
6 changed files with 29 additions and 10 deletions
|
|
@ -356,7 +356,7 @@ class ObjectManager(models.Manager):
|
|||
# Create a player object of the same ID in the Objects table.
|
||||
odat = {"id": uid,
|
||||
"name": uname,
|
||||
"type": 1,
|
||||
"type": defines_global.OTYPE_PLAYER,
|
||||
"location": start_room_obj,
|
||||
"owner": None}
|
||||
user_object = self.create_object(odat)
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Attribute(models.Model):
|
|||
"""
|
||||
attr_name = models.CharField(max_length=255)
|
||||
attr_value = models.CharField(max_length=255)
|
||||
attr_hidden = models.BooleanField(default=0)
|
||||
attr_hidden = models.BooleanField(default=False)
|
||||
attr_object = models.ForeignKey("Object")
|
||||
|
||||
objects = AttributeManager()
|
||||
|
|
@ -903,6 +903,7 @@ class CommChannel(models.Model):
|
|||
ansi_name = models.CharField(max_length=255)
|
||||
owner = models.ForeignKey(Object, related_name="chan_owner")
|
||||
description = models.CharField(max_length=80)
|
||||
is_joined_by_default = models.BooleanField(default=False)
|
||||
req_grp = models.ManyToManyField(Group, blank=True, null=True)
|
||||
|
||||
objects = CommChannelManager()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
INSERT INTO objects_object VALUES(1,'Wizard','Wizard',1,0,'',2,1,'',2,'','CONNECTED','2007-04-25');
|
||||
INSERT INTO objects_object VALUES(2,'Limbo','Limbo',1,NULL,'',NULL,2,'Welcome to your new Evennia-based game. From here you are ready to begin development. If you should need help or would like to participate in community discussions, visit http://evennia.com.',NULL,'','','2007-04-25');
|
||||
INSERT INTO objects_commchannel VALUES(1,'Public','Public',1,'Public Discussion');
|
||||
INSERT INTO objects_commchannel VALUES(2,'Errors','Errors',1,'Error Log');
|
||||
INSERT INTO objects_commchannel VALUES(3,'Info','Info',1,'Info Log');
|
||||
INSERT INTO objects_commchannel VALUES(1,'Public','Public',1,'Public Discussion', false);
|
||||
INSERT INTO objects_commchannel VALUES(2,'Errors','Errors',1,'Error Log', false);
|
||||
INSERT INTO objects_commchannel VALUES(3,'Info','Info',1,'Info Log', false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue