# encoding: 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 'PackageDistribution'
        db.create_table('repo_packagedistribution', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['repo.Package'])),
            ('distribution', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['repo.Distribution'])),
            ('component', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['repo.Component'])),
        ))
        db.send_create_signal('repo', ['PackageDistribution'])

        # Adding unique constraint on 'PackageDistribution', fields ['package', 'distribution']
        db.create_unique('repo_packagedistribution', ['package_id', 'distribution_id'])


    def backwards(self, orm):
        
        # Removing unique constraint on 'PackageDistribution', fields ['package', 'distribution']
        db.delete_unique('repo_packagedistribution', ['package_id', 'distribution_id'])

        # Deleting model 'PackageDistribution'
        db.delete_table('repo_packagedistribution')


    models = {
        'repo.architecture': {
            'Meta': {'ordering': "('name',)", 'object_name': 'Architecture'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '10'})
        },
        'repo.component': {
            'Meta': {'ordering': "('name',)", 'object_name': 'Component'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'})
        },
        'repo.distribution': {
            'Meta': {'ordering': "('name',)", 'object_name': 'Distribution'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'architectures': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['repo.Architecture']", 'symmetrical': 'False'}),
            'components': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['repo.Component']", 'symmetrical': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'repo.package': {
            'Meta': {'ordering': "('component__distribution__name', 'component__name', 'name')", 'unique_together': "(('name', 'distribution'),)", 'object_name': 'Package'},
            'component': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Component']"}),
            'distribution': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Distribution']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
        },
        'repo.packagedistribution': {
            'Meta': {'unique_together': "(('package', 'distribution'),)", 'object_name': 'PackageDistribution'},
            'component': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Component']"}),
            'distribution': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Distribution']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Package']"})
        }
    }

    complete_apps = ['repo']

e39ff197a9a3a27e9dd66aa9049b517cb0c710ae
<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table('repo_packagedistribution', (('id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'package', self.gf('django.db.models.fields.related.ForeignKey'
            )(to=orm['repo.Package'])), ('distribution', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Distribution'])), ('component', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Component']))))
        db.send_create_signal('repo', ['PackageDistribution'])
        db.create_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table('repo_packagedistribution', (('id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'package', self.gf('django.db.models.fields.related.ForeignKey'
            )(to=orm['repo.Package'])), ('distribution', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Distribution'])), ('component', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Component']))))
        db.send_create_signal('repo', ['PackageDistribution'])
        db.create_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])

    def backwards(self, orm):
        db.delete_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])
        db.delete_table('repo_packagedistribution')
    <mask token>
    <mask token>

<mask token>


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table('repo_packagedistribution', (('id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'package', self.gf('django.db.models.fields.related.ForeignKey'
            )(to=orm['repo.Package'])), ('distribution', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Distribution'])), ('component', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Component']))))
        db.send_create_signal('repo', ['PackageDistribution'])
        db.create_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])

    def backwards(self, orm):
        db.delete_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])
        db.delete_table('repo_packagedistribution')
    models = {'repo.architecture': {'Meta': {'ordering': "('name',)",
        'object_name': 'Architecture'}, 'active': (
        'django.db.models.fields.BooleanField', [], {'default': 'True'}),
        'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'name': ('django.db.models.fields.CharField', [], {
        'unique': 'True', 'max_length': '10'})}, 'repo.component': {'Meta':
        {'ordering': "('name',)", 'object_name': 'Component'}, 'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '50'})}, 'repo.distribution': {'Meta': {'ordering':
        "('name',)", 'object_name': 'Distribution'}, 'active': (
        'django.db.models.fields.BooleanField', [], {'default': 'True'}),
        'architectures': ('django.db.models.fields.related.ManyToManyField',
        [], {'to': "orm['repo.Architecture']", 'symmetrical': 'False'}),
        'components': ('django.db.models.fields.related.ManyToManyField', [
        ], {'to': "orm['repo.Component']", 'symmetrical': 'False'}), 'id':
        ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '50'})}, 'repo.package': {'Meta': {'ordering':
        "('component__distribution__name', 'component__name', 'name')",
        'unique_together': "(('name', 'distribution'),)", 'object_name':
        'Package'}, 'component': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Component']"}), 'distribution': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Distribution']"}), 'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '1024'})}, 'repo.packagedistribution': {'Meta': {'unique_together':
        "(('package', 'distribution'),)", 'object_name':
        'PackageDistribution'}, 'component': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Component']"}), 'distribution': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Distribution']"}), 'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'package': ('django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Package']"})}}
    complete_apps = ['repo']

import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        db.create_table('repo_packagedistribution', (('id', self.gf(
            'django.db.models.fields.AutoField')(primary_key=True)), (
            'package', self.gf('django.db.models.fields.related.ForeignKey'
            )(to=orm['repo.Package'])), ('distribution', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Distribution'])), ('component', self.gf(
            'django.db.models.fields.related.ForeignKey')(to=orm[
            'repo.Component']))))
        db.send_create_signal('repo', ['PackageDistribution'])
        db.create_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])

    def backwards(self, orm):
        db.delete_unique('repo_packagedistribution', ['package_id',
            'distribution_id'])
        db.delete_table('repo_packagedistribution')
    models = {'repo.architecture': {'Meta': {'ordering': "('name',)",
        'object_name': 'Architecture'}, 'active': (
        'django.db.models.fields.BooleanField', [], {'default': 'True'}),
        'id': ('django.db.models.fields.AutoField', [], {'primary_key':
        'True'}), 'name': ('django.db.models.fields.CharField', [], {
        'unique': 'True', 'max_length': '10'})}, 'repo.component': {'Meta':
        {'ordering': "('name',)", 'object_name': 'Component'}, 'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'unique': 'True',
        'max_length': '50'})}, 'repo.distribution': {'Meta': {'ordering':
        "('name',)", 'object_name': 'Distribution'}, 'active': (
        'django.db.models.fields.BooleanField', [], {'default': 'True'}),
        'architectures': ('django.db.models.fields.related.ManyToManyField',
        [], {'to': "orm['repo.Architecture']", 'symmetrical': 'False'}),
        'components': ('django.db.models.fields.related.ManyToManyField', [
        ], {'to': "orm['repo.Component']", 'symmetrical': 'False'}), 'id':
        ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '50'})}, 'repo.package': {'Meta': {'ordering':
        "('component__distribution__name', 'component__name', 'name')",
        'unique_together': "(('name', 'distribution'),)", 'object_name':
        'Package'}, 'component': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Component']"}), 'distribution': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Distribution']"}), 'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'name': ('django.db.models.fields.CharField', [], {'max_length':
        '1024'})}, 'repo.packagedistribution': {'Meta': {'unique_together':
        "(('package', 'distribution'),)", 'object_name':
        'PackageDistribution'}, 'component': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Component']"}), 'distribution': (
        'django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Distribution']"}), 'id': (
        'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
        'package': ('django.db.models.fields.related.ForeignKey', [], {'to':
        "orm['repo.Package']"})}}
    complete_apps = ['repo']

# encoding: 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 'PackageDistribution'
        db.create_table('repo_packagedistribution', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('package', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['repo.Package'])),
            ('distribution', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['repo.Distribution'])),
            ('component', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['repo.Component'])),
        ))
        db.send_create_signal('repo', ['PackageDistribution'])

        # Adding unique constraint on 'PackageDistribution', fields ['package', 'distribution']
        db.create_unique('repo_packagedistribution', ['package_id', 'distribution_id'])


    def backwards(self, orm):
        
        # Removing unique constraint on 'PackageDistribution', fields ['package', 'distribution']
        db.delete_unique('repo_packagedistribution', ['package_id', 'distribution_id'])

        # Deleting model 'PackageDistribution'
        db.delete_table('repo_packagedistribution')


    models = {
        'repo.architecture': {
            'Meta': {'ordering': "('name',)", 'object_name': 'Architecture'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '10'})
        },
        'repo.component': {
            'Meta': {'ordering': "('name',)", 'object_name': 'Component'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'})
        },
        'repo.distribution': {
            'Meta': {'ordering': "('name',)", 'object_name': 'Distribution'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'architectures': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['repo.Architecture']", 'symmetrical': 'False'}),
            'components': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['repo.Component']", 'symmetrical': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'repo.package': {
            'Meta': {'ordering': "('component__distribution__name', 'component__name', 'name')", 'unique_together': "(('name', 'distribution'),)", 'object_name': 'Package'},
            'component': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Component']"}),
            'distribution': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Distribution']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
        },
        'repo.packagedistribution': {
            'Meta': {'unique_together': "(('package', 'distribution'),)", 'object_name': 'PackageDistribution'},
            'component': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Component']"}),
            'distribution': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Distribution']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'package': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['repo.Package']"})
        }
    }

    complete_apps = ['repo']
