0020_auto__add_clpeptidefilter__add_clpeptidefilterparam.py 8.42 KB
Newer Older
Mathieu Courcelles's avatar
.  
Mathieu Courcelles committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'CLPeptideFilter'
        db.create_table(u'CLMSpipeline_app_clpeptidefilter', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('creation_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
        ))
        db.send_create_signal(u'CLMSpipeline_app', ['CLPeptideFilter'])

        # Adding model 'CLPeptideFilterParam'
        db.create_table(u'CLMSpipeline_app_clpeptidefilterparam', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('clpeptidefilter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['CLMSpipeline_app.CLPeptideFilter'])),
            ('method', self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('field', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('field_lookup', self.gf('django.db.models.fields.CharField')(max_length=20)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=50)),
        ))
        db.send_create_signal(u'CLMSpipeline_app', ['CLPeptideFilterParam'])


    def backwards(self, orm):
        # Deleting model 'CLPeptideFilter'
        db.delete_table(u'CLMSpipeline_app_clpeptidefilter')

        # Deleting model 'CLPeptideFilterParam'
        db.delete_table(u'CLMSpipeline_app_clpeptidefilterparam')


    models = {
        u'CLMSpipeline_app.clpeptide': {
            'Meta': {'ordering': "['-match_score']", 'object_name': 'CLPeptide'},
            'autovalidated': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'cross_link': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'dataset': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['CLMSpipeline_app.Dataset']", 'symmetrical': 'False'}),
            'delta': ('django.db.models.fields.FloatField', [], {}),
            'display_protein1': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'display_protein2': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'error': ('django.db.models.fields.FloatField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'link_type': ('django.db.models.fields.IntegerField', [], {}),
            'match_score': ('django.db.models.fields.FloatField', [], {}),
            'not_decoy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'notes': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'pep1_link_pos': ('django.db.models.fields.IntegerField', [], {}),
            'pep2_link_pos': ('django.db.models.fields.IntegerField', [], {}),
            'peptide1': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'peptide2': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'peptide_position1': ('django.db.models.fields.IntegerField', [], {}),
            'peptide_position2': ('django.db.models.fields.IntegerField', [], {}),
            'peptide_wo_mod1': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
            'peptide_wo_mod2': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
            'precursor_charge': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
            'precursor_intensity': ('django.db.models.fields.FloatField', [], {}),
            'precursor_mz': ('django.db.models.fields.FloatField', [], {}),
            'rank': ('django.db.models.fields.IntegerField', [], {}),
            'rejected': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'run_name': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
            'scan_number': ('django.db.models.fields.IntegerField', [], {}),
            'spectrum_intensity_coverage': ('django.db.models.fields.FloatField', [], {}),
            'total_fragment_matches': ('django.db.models.fields.IntegerField', [], {}),
            'validated': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'CLMSpipeline_app.clpeptidefilter': {
            'Meta': {'object_name': 'CLPeptideFilter'},
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        u'CLMSpipeline_app.clpeptidefilterparam': {
            'Meta': {'object_name': 'CLPeptideFilterParam'},
            'clpeptidefilter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['CLMSpipeline_app.CLPeptideFilter']"}),
            'field': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'field_lookup': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'method': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'value': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'CLMSpipeline_app.crosslinker': {
            'Meta': {'ordering': "['name']", 'object_name': 'CrossLinker'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
        },
        u'CLMSpipeline_app.dataset': {
            'Meta': {'ordering': "['-creation_date']", 'object_name': 'Dataset'},
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'cross_linker': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['CLMSpipeline_app.CrossLinker']"}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'extra_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
            'fasta_db': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['CLMSpipeline_app.FastaDB']"}),
            'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instrument_name': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['CLMSpipeline_app.Instrument']"}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'parsing_log': ('django.db.models.fields.CharField', [], {'max_length': '1000', 'null': 'True', 'blank': 'True'}),
            'parsing_status': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'prefix': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
            'search_algorithm': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['CLMSpipeline_app.searchAlgorithm']"})
        },
        u'CLMSpipeline_app.fastadb': {
            'Meta': {'ordering': "['name']", 'object_name': 'FastaDB'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
        },
        u'CLMSpipeline_app.instrument': {
            'Meta': {'ordering': "['name']", 'object_name': 'Instrument'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
        },
        u'CLMSpipeline_app.searchalgorithm': {
            'Meta': {'ordering': "['name']", 'object_name': 'searchAlgorithm'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
        }
    }

    complete_apps = ['CLMSpipeline_app']