Last point where Player & Account coexist - migrate here first.
This commit is contained in:
parent
63c96de443
commit
34443fa4e6
6 changed files with 65 additions and 15 deletions
19
evennia/objects/migrations/0009_remove_objectdb_db_player.py
Normal file
19
evennia/objects/migrations/0009_remove_objectdb_db_player.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.2 on 2017-07-06 20:41
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('objects', '0008_auto_20170705_1736'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='objectdb',
|
||||
name='db_player',
|
||||
),
|
||||
]
|
||||
|
|
@ -170,9 +170,6 @@ class ObjectDB(TypedObject):
|
|||
# will automatically save and cache the data more efficiently.
|
||||
|
||||
# If this is a character object, the player is connected here.
|
||||
# TODO Player-Account
|
||||
db_player = models.ForeignKey("players.PlayerDB", null=True, verbose_name='player', on_delete=models.SET_NULL,
|
||||
help_text='a Player connected to this object, if any.')
|
||||
db_account = models.ForeignKey("accounts.AccountDB", null=True, verbose_name='account', on_delete=models.SET_NULL,
|
||||
help_text='an Account connected to this object, if any.')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue