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/scripts/migrations/0011_remove_scriptdb_db_player.py
Normal file
19
evennia/scripts/migrations/0011_remove_scriptdb_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 = [
|
||||
('scripts', '0010_auto_20170705_1736'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='scriptdb',
|
||||
name='db_player',
|
||||
),
|
||||
]
|
||||
|
|
@ -86,9 +86,6 @@ class ScriptDB(TypedObject):
|
|||
# A reference to the database object affected by this Script, if any.
|
||||
db_obj = models.ForeignKey("objects.ObjectDB", null=True, blank=True, verbose_name='scripted object',
|
||||
help_text='the object to store this script on, if not a global script.')
|
||||
# TODO Player-Account
|
||||
db_player = models.ForeignKey("players.PlayerDB", null=True, blank=True, verbose_name="scripted player",
|
||||
help_text='the player to store this script on (should not be set if obj is set)')
|
||||
db_account = models.ForeignKey("accounts.AccountDB", null=True, blank=True, verbose_name="scripted account",
|
||||
help_text='the account to store this script on (should not be set if db_obj is set)')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue