This repository has been archived by the owner on Mar 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#23 WIP: Transitioning all code over to using Django Database and que…
…ries in persistent memory. Tests still broken.
- Loading branch information
1 parent
b49ac65
commit 650736e
Showing
6 changed files
with
149 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Generated by Django 2.2.1 on 2019-08-14 14:28 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GraphGenome', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=1000)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Node', | ||
fields=[ | ||
('seq', models.CharField(blank=True, max_length=255)), | ||
('name', models.CharField(max_length=15, primary_key=True, serialize=False)), | ||
('graph', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Graph.GraphGenome')), | ||
], | ||
options={ | ||
'unique_together': {('graph', 'name')}, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Path', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('accession', models.CharField(max_length=1000, unique=True)), | ||
('graph', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Graph.GraphGenome')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='NodeTraversal', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('order', models.IntegerField(help_text='Defines the order a path lists traversals')), | ||
('strand', models.CharField(choices=[('+', '+'), ('-', '-')], default='+', max_length=1)), | ||
('node', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Graph.Node')), | ||
('path', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Graph.Path')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.