forked from 0x2620/pandora
db migration
This commit is contained in:
parent
976860ec30
commit
4219246909
32 changed files with 1513 additions and 1 deletions
34
pandora/sequence/migrations/0001_initial.py
Normal file
34
pandora/sequence/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-02-19 15:37
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('item', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Sequence',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('mode', models.IntegerField(choices=[(0, b'shape'), (1, b'color')], default=0)),
|
||||
('hash', models.BigIntegerField(db_index=True, default=-9223372036854775808)),
|
||||
('start', models.FloatField(default=-1)),
|
||||
('end', models.FloatField(default=-1)),
|
||||
('duration', models.FloatField(default=0)),
|
||||
('sort', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sequences', to='item.ItemSort')),
|
||||
],
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='sequence',
|
||||
unique_together=set([('sort', 'start', 'end', 'mode')]),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue