Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Fix and merge SimpleEvent DB migrations
Browse files Browse the repository at this point in the history
- adjust DB migrations to account for `Event` => `EventBase` rename
- combine two migrations into one to avoid trivial second migration.
  • Loading branch information
jmurty committed Oct 17, 2016
1 parent 289ce39 commit 8e7a3d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
7 changes: 4 additions & 3 deletions icekit_events/event_types/simple/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@
class Migration(migrations.Migration):

dependencies = [
('icekit_events', '0018_auto_20160929_2106'),
('icekit_events', '0017_rename_event_to_eventbase'),
]

operations = [
migrations.CreateModel(
name='SimpleEvent',
fields=[
('event_ptr', models.OneToOneField(serialize=False, primary_key=True, auto_created=True, parent_link=True, to='icekit_events.Event')),
('eventbase_ptr', models.OneToOneField(serialize=False, primary_key=True, auto_created=True, parent_link=True, to='icekit_events.EventBase')),
],
options={
'abstract': False,
'ordering': ('title', 'pk'),
'verbose_name': 'Simple event',
},
bases=('icekit_events.event',),
bases=('icekit_events.eventbase',),
),
]

This file was deleted.

0 comments on commit 8e7a3d7

Please sign in to comment.