def forwards(self, orm):

        if db_table_exists('catalogue_userrelatedtogadgetresource'):

            # Removing unique constraint on 'UserRelatedToGadgetResource', fields ['gadget', 'user']
            db.delete_unique('catalogue_userrelatedtogadgetresource', ['gadget_id', 'user_id'])

            # Deleting model 'UserRelatedToGadgetResource'
            db.delete_table('catalogue_userrelatedtogadgetresource')

        if db_table_exists('catalogue_translation'):

            # Deleting model 'Translation'
            db.delete_table('catalogue_translation')
Ejemplo n.º 2
0
    def forwards(self, orm):

        if db_table_exists('context_concept'):
            return

        # Adding model 'Concept'
        db.create_table('context_concept', (
            ('concept', self.gf('django.db.models.fields.CharField')(
                max_length=255, primary_key=True)),
            ('source',
             self.gf('django.db.models.fields.CharField')(max_length=4)),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=4)),
            ('adaptor', self.gf('django.db.models.fields.CharField')(
                max_length=256, null=True)),
        ))
        db.send_create_signal('context', ['Concept'])

        # Adding model 'ConceptName'
        db.create_table('context_conceptname', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=256)),
            ('concept', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['context.Concept'])),
        ))
        db.send_create_signal('context', ['ConceptName'])
Ejemplo n.º 3
0
    def forwards(self, orm):

        if db_table_exists('preferences_platformpreference'):
            return

        # Adding model 'PlatformPreference'
        db.create_table('preferences_platformpreference', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('preferences', ['PlatformPreference'])

        # Adding model 'WorkSpacePreference'
        db.create_table('preferences_workspacepreference', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('workspace', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.WorkSpace'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('inherit', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('preferences', ['WorkSpacePreference'])

        # Adding model 'TabPreference'
        db.create_table('preferences_tabpreference', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('tab', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.Tab'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('inherit', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('preferences', ['TabPreference'])
Ejemplo n.º 4
0
    def forwards(self, orm):

        if db_table_exists('user_userprofile'):
            return

        # Adding model 'UserProfile'
        db.create_table('user_userprofile', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], unique=True)),
            ('load_script', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
        ))
        db.send_create_signal('user', ['UserProfile'])
Ejemplo n.º 5
0
    def forwards(self, orm):

        if db_table_exists('remoteChannel_remotechannel'):
            return

        # Adding model 'RemoteChannel'
        db.create_table('remoteChannel_remotechannel', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('url', self.gf('django.db.models.fields.URLField')(unique=True, max_length=200)),
            ('value', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
        ))
        db.send_create_signal('remoteChannel', ['RemoteChannel'])
Ejemplo n.º 6
0
    def forwards(self, orm):

        if db_table_exists('preferences_platformpreference'):
            return

        # Adding model 'PlatformPreference'
        db.create_table('preferences_platformpreference', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('preferences', ['PlatformPreference'])

        # Adding model 'WorkSpacePreference'
        db.create_table('preferences_workspacepreference', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.WorkSpace'])),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('inherit',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('preferences', ['WorkSpacePreference'])

        # Adding model 'TabPreference'
        db.create_table('preferences_tabpreference', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('tab', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['workspace.Tab'])),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('inherit',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('preferences', ['TabPreference'])
Ejemplo n.º 7
0
    def forwards(self, orm):

        if db_table_exists('translator_translation'):
            return

        # Adding model 'Translation'
        db.create_table('translator_translation', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('text_id', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('element_id', self.gf('django.db.models.fields.IntegerField')()),
            ('table', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('language', self.gf('django.db.models.fields.CharField')(max_length=2)),
            ('default', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('value', self.gf('django.db.models.fields.TextField')(null=True)),
        ))
        db.send_create_signal('translator', ['Translation'])
Ejemplo n.º 8
0
    def forwards(self, orm):

        if db_table_exists("resourceSubscription_contract"):
            return

        # Adding model 'Contract'
        db.create_table(
            "resourceSubscription_contract",
            (
                ("id", self.gf("django.db.models.fields.AutoField")(primary_key=True)),
                ("free", self.gf("django.db.models.fields.BooleanField")(default=False)),
                ("times_used", self.gf("django.db.models.fields.IntegerField")(default=0)),
                ("application", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["catalogue.Application"])),
                ("user", self.gf("django.db.models.fields.related.ForeignKey")(to=orm["auth.User"])),
            ),
        )
        db.send_create_signal("resourceSubscription", ["Contract"])
Ejemplo n.º 9
0
    def forwards(self, orm):

        if db_table_exists('igadget_position'):
            return

        # Adding model 'Position'
        db.create_table('igadget_position', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('posX', self.gf('django.db.models.fields.IntegerField')()),
            ('posY', self.gf('django.db.models.fields.IntegerField')()),
            ('posZ', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('height', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('width', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('minimized', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('fulldragboard', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('igadget', ['Position'])

        # Adding model 'IGadget'
        db.create_table('igadget_igadget', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.Gadget'])),
            ('tab', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.Tab'])),
            ('layout', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('transparency', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('position', self.gf('django.db.models.fields.related.ForeignKey')(related_name='Position', to=orm['igadget.Position'])),
            ('icon_position', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='Icon_Position', null=True, to=orm['igadget.Position'])),
            ('menu_color', self.gf('django.db.models.fields.CharField')(default='FFFFFF', max_length=6)),
            ('refused_version', self.gf('django.db.models.fields.CharField')(max_length=150, null=True, blank=True)),
            ('readOnly', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('igadget', ['IGadget'])

        # Adding model 'Variable'
        db.create_table('igadget_variable', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('vardef', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.VariableDef'])),
            ('igadget', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['igadget.IGadget'])),
            ('abstract_variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.AbstractVariable'])),
        ))
        db.send_create_signal('igadget', ['Variable'])
Ejemplo n.º 10
0
    def forwards(self, orm):

        if db_table_exists('gadgetGenerator_template'):
            return

        # Adding model 'Template'
        db.create_table('gadgetGenerator_template', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=250)),
            ('defaultContext', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('gadgetGenerator', ['Template'])

        # Adding model 'TemplateInstance'
        db.create_table('gadgetGenerator_templateinstance', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('context', self.gf('django.db.models.fields.TextField')()),
            ('template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadgetGenerator.Template'])),
        ))
        db.send_create_signal('gadgetGenerator', ['TemplateInstance'])
Ejemplo n.º 11
0
    def forwards(self, orm):

        if db_table_exists('context_concept'):
            return

        # Adding model 'Concept'
        db.create_table('context_concept', (
            ('concept', self.gf('django.db.models.fields.CharField')(max_length=255, primary_key=True)),
            ('source', self.gf('django.db.models.fields.CharField')(max_length=4)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=4)),
            ('adaptor', self.gf('django.db.models.fields.CharField')(max_length=256, null=True)),
        ))
        db.send_create_signal('context', ['Concept'])

        # Adding model 'ConceptName'
        db.create_table('context_conceptname', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=256)),
            ('concept', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['context.Concept'])),
        ))
        db.send_create_signal('context', ['ConceptName'])
Ejemplo n.º 12
0
    def forwards(self, orm):

        if db_table_exists('gadgetGenerator_template'):
            return

        # Adding model 'Template'
        db.create_table('gadgetGenerator_template', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(
                unique=True, max_length=250)),
            ('defaultContext', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('gadgetGenerator', ['Template'])

        # Adding model 'TemplateInstance'
        db.create_table('gadgetGenerator_templateinstance', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('context', self.gf('django.db.models.fields.TextField')()),
            ('template', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadgetGenerator.Template'])),
        ))
        db.send_create_signal('gadgetGenerator', ['TemplateInstance'])
Ejemplo n.º 13
0
    def forwards(self, orm):

        if db_table_exists('gadget_xhtml'):
            return

        # Adding model 'XHTML'
        db.create_table('gadget_xhtml', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('uri', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
            ('code', self.gf('django.db.models.fields.TextField')()),
            ('url', self.gf('django.db.models.fields.CharField')(max_length=500)),
            ('content_type', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
            ('cacheable', self.gf('django.db.models.fields.BooleanField')(default=True)),
        ))
        db.send_create_signal('gadget', ['XHTML'])

        # Adding model 'Gadget'
        db.create_table('gadget_gadget', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('uri', self.gf('django.db.models.fields.CharField')(max_length=500)),
            ('vendor', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('version', self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('display_name', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
            ('xhtml', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.XHTML'])),
            ('author', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('mail', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('wikiURI', self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('imageURI', self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('iPhoneImageURI', self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('width', self.gf('django.db.models.fields.IntegerField')(default=1)),
            ('height', self.gf('django.db.models.fields.IntegerField')(default=1)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('menuColor', self.gf('django.db.models.fields.CharField')(default='FFFFFF', max_length=6)),
            ('shared', self.gf('django.db.models.fields.NullBooleanField')(default=False, null=True, blank=True)),
            ('last_update', self.gf('django.db.models.fields.DateTimeField')(null=True)),
        ))
        db.send_create_signal('gadget', ['Gadget'])

        # Adding unique constraint on 'Gadget', fields ['vendor', 'name', 'version']
        db.create_unique('gadget_gadget', ['vendor', 'name', 'version'])

        # Adding M2M table for field users on 'Gadget'
        db.create_table('gadget_gadget_users', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('gadget', models.ForeignKey(orm['gadget.gadget'], null=False)),
            ('user', models.ForeignKey(orm['auth.user'], null=False))
        ))
        db.create_unique('gadget_gadget_users', ['gadget_id', 'user_id'])

        # Adding model 'Capability'
        db.create_table('gadget_capability', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.Gadget'])),
        ))
        db.send_create_signal('gadget', ['Capability'])

        # Adding unique constraint on 'Capability', fields ['name', 'value', 'gadget']
        db.create_unique('gadget_capability', ['name', 'value', 'gadget_id'])

        # Adding model 'SharedVariableDef'
        db.create_table('gadget_sharedvariabledef', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
        ))
        db.send_create_signal('gadget', ['SharedVariableDef'])

        # Adding model 'VariableDef'
        db.create_table('gadget_variabledef', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=1)),
            ('aspect', self.gf('django.db.models.fields.CharField')(max_length=4)),
            ('label', self.gf('django.db.models.fields.CharField')(max_length=50, null=True)),
            ('action_label', self.gf('django.db.models.fields.CharField')(max_length=50, null=True)),
            ('description', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('friend_code', self.gf('django.db.models.fields.CharField')(max_length=30, null=True)),
            ('default_value', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('shared_var_def', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.SharedVariableDef'], null=True, blank=True)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.Gadget'])),
        ))
        db.send_create_signal('gadget', ['VariableDef'])

        # Adding model 'UserPrefOption'
        db.create_table('gadget_userprefoption', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('variableDef', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.VariableDef'])),
        ))
        db.send_create_signal('gadget', ['UserPrefOption'])

        # Adding model 'VariableDefAttr'
        db.create_table('gadget_variabledefattr', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('variableDef', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.VariableDef'])),
        ))
        db.send_create_signal('gadget', ['VariableDefAttr'])

        # Adding model 'ContextOption'
        db.create_table('gadget_contextoption', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('concept', self.gf('django.db.models.fields.CharField')(max_length=256)),
            ('varDef', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.VariableDef'])),
        ))
        db.send_create_signal('gadget', ['ContextOption'])
Ejemplo n.º 14
0
    def forwards(self, orm):

        if db_table_exists('igadget_position'):
            return

        # Adding model 'Position'
        db.create_table('igadget_position', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('posX', self.gf('django.db.models.fields.IntegerField')()),
            ('posY', self.gf('django.db.models.fields.IntegerField')()),
            ('posZ',
             self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('height', self.gf('django.db.models.fields.IntegerField')(
                null=True, blank=True)),
            ('width', self.gf('django.db.models.fields.IntegerField')(
                null=True, blank=True)),
            ('minimized',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('fulldragboard',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('igadget', ['Position'])

        # Adding model 'IGadget'
        db.create_table('igadget_igadget', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadget.Gadget'])),
            ('tab', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['workspace.Tab'])),
            ('layout',
             self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('transparency',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('position', self.gf('django.db.models.fields.related.ForeignKey')(
                related_name='Position', to=orm['igadget.Position'])),
            ('icon_position',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 blank=True,
                 related_name='Icon_Position',
                 null=True,
                 to=orm['igadget.Position'])),
            ('menu_color', self.gf('django.db.models.fields.CharField')(
                default='FFFFFF', max_length=6)),
            ('refused_version', self.gf('django.db.models.fields.CharField')(
                max_length=150, null=True, blank=True)),
            ('readOnly',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('igadget', ['IGadget'])

        # Adding model 'Variable'
        db.create_table('igadget_variable', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('vardef', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadget.VariableDef'])),
            ('igadget', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['igadget.IGadget'])),
            ('abstract_variable',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.AbstractVariable'])),
        ))
        db.send_create_signal('igadget', ['Variable'])
Ejemplo n.º 15
0
    def forwards(self, orm):

        if db_table_exists('layout_branding'):
            return

        # Adding model 'Branding'
        db.create_table('layout_branding', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('logo', self.gf('django.db.models.fields.CharField')(
                max_length=500, null=True, blank=True)),
            ('viewer_logo', self.gf('django.db.models.fields.CharField')(
                max_length=500, null=True, blank=True)),
            ('link', self.gf('django.db.models.fields.URLField')(
                max_length=500, null=True, blank=True)),
        ))
        db.send_create_signal('layout', ['Branding'])

        # Adding model 'Theme'
        db.create_table('layout_theme', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(
                unique=True, max_length=250)),
            ('theme_css', self.gf('django.db.models.fields.TextField')()),
            ('images', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('layout', ['Theme'])

        # Adding model 'Layout'
        db.create_table('layout_layout', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(
                unique=True, max_length=250)),
            ('templates', self.gf('django.db.models.fields.TextField')()),
            ('elements', self.gf('django.db.models.fields.TextField')()),
            ('layout_css', self.gf('django.db.models.fields.TextField')()),
            ('theme', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Theme'])),
        ))
        db.send_create_signal('layout', ['Layout'])

        # Adding model 'SkinTemplate'
        db.create_table('layout_skintemplate', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('properties', self.gf('django.db.models.fields.TextField')()),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=25)),
            ('layout', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Layout'], null=True, blank=True)),
            ('template_file',
             self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['SkinTemplate'])

        # Adding model 'Skin'
        db.create_table('layout_skin', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'], null=True, blank=True)),
            ('properties', self.gf('django.db.models.fields.TextField')()),
            ('skin_template',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['layout.SkinTemplate'])),
            ('layout', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Layout'], null=True, blank=True)),
            ('default',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('layout', ['Skin'])

        # Adding unique constraint on 'Skin', fields ['name', 'layout']
        db.create_unique('layout_skin', ['name', 'layout_id'])

        # Adding model 'ThemeBranding'
        db.create_table('layout_themebranding', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('theme', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Theme'])),
            ('branding', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Branding'])),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['ThemeBranding'])

        # Adding unique constraint on 'ThemeBranding', fields ['theme', 'branding', 'type']
        db.create_unique('layout_themebranding',
                         ['theme_id', 'branding_id', 'type'])

        # Adding model 'SkinOrganization'
        db.create_table('layout_skinorganization', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('skin', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Skin'])),
            ('organization',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['auth.Group'])),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['SkinOrganization'])

        # Adding unique constraint on 'SkinOrganization', fields ['skin', 'organization', 'type']
        db.create_unique('layout_skinorganization',
                         ['skin_id', 'organization_id', 'type'])

        # Adding model 'BrandingOrganization'
        db.create_table('layout_brandingorganization', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('branding', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Branding'])),
            ('organization',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['auth.Group'])),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['BrandingOrganization'])

        # Adding unique constraint on 'BrandingOrganization', fields ['branding', 'organization', 'type']
        db.create_unique('layout_brandingorganization',
                         ['branding_id', 'organization_id', 'type'])
Ejemplo n.º 16
0
    def forwards(self, orm):

        if db_table_exists('gadget_xhtml'):
            return

        # Adding model 'XHTML'
        db.create_table('gadget_xhtml', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('uri', self.gf('django.db.models.fields.CharField')(
                unique=True, max_length=255)),
            ('code', self.gf('django.db.models.fields.TextField')()),
            ('url',
             self.gf('django.db.models.fields.CharField')(max_length=500)),
            ('content_type', self.gf('django.db.models.fields.CharField')(
                max_length=50, null=True, blank=True)),
            ('cacheable',
             self.gf('django.db.models.fields.BooleanField')(default=True)),
        ))
        db.send_create_signal('gadget', ['XHTML'])

        # Adding model 'Gadget'
        db.create_table('gadget_gadget', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('uri',
             self.gf('django.db.models.fields.CharField')(max_length=500)),
            ('vendor',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('version',
             self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('display_name', self.gf('django.db.models.fields.CharField')(
                max_length=250, null=True, blank=True)),
            ('xhtml', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadget.XHTML'])),
            ('author',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('mail',
             self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('wikiURI',
             self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('imageURI',
             self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('iPhoneImageURI',
             self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('width',
             self.gf('django.db.models.fields.IntegerField')(default=1)),
            ('height',
             self.gf('django.db.models.fields.IntegerField')(default=1)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('menuColor', self.gf('django.db.models.fields.CharField')(
                default='FFFFFF', max_length=6)),
            ('shared', self.gf('django.db.models.fields.NullBooleanField')(
                default=False, null=True, blank=True)),
            ('last_update',
             self.gf('django.db.models.fields.DateTimeField')(null=True)),
        ))
        db.send_create_signal('gadget', ['Gadget'])

        # Adding unique constraint on 'Gadget', fields ['vendor', 'name', 'version']
        db.create_unique('gadget_gadget', ['vendor', 'name', 'version'])

        # Adding M2M table for field users on 'Gadget'
        db.create_table(
            'gadget_gadget_users',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('gadget', models.ForeignKey(orm['gadget.gadget'], null=False)),
             ('user', models.ForeignKey(orm['auth.user'], null=False))))
        db.create_unique('gadget_gadget_users', ['gadget_id', 'user_id'])

        # Adding model 'Capability'
        db.create_table('gadget_capability', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadget.Gadget'])),
        ))
        db.send_create_signal('gadget', ['Capability'])

        # Adding unique constraint on 'Capability', fields ['name', 'value', 'gadget']
        db.create_unique('gadget_capability', ['name', 'value', 'gadget_id'])

        # Adding model 'SharedVariableDef'
        db.create_table('gadget_sharedvariabledef', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
        ))
        db.send_create_signal('gadget', ['SharedVariableDef'])

        # Adding model 'VariableDef'
        db.create_table('gadget_variabledef', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=1)),
            ('aspect',
             self.gf('django.db.models.fields.CharField')(max_length=4)),
            ('label', self.gf('django.db.models.fields.CharField')(
                max_length=50, null=True)),
            ('action_label', self.gf('django.db.models.fields.CharField')(
                max_length=50, null=True)),
            ('description', self.gf('django.db.models.fields.CharField')(
                max_length=250, null=True)),
            ('friend_code', self.gf('django.db.models.fields.CharField')(
                max_length=30, null=True)),
            ('default_value', self.gf('django.db.models.fields.TextField')(
                null=True, blank=True)),
            ('shared_var_def',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['gadget.SharedVariableDef'], null=True, blank=True)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadget.Gadget'])),
        ))
        db.send_create_signal('gadget', ['VariableDef'])

        # Adding model 'UserPrefOption'
        db.create_table('gadget_userprefoption', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('variableDef',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['gadget.VariableDef'])),
        ))
        db.send_create_signal('gadget', ['UserPrefOption'])

        # Adding model 'VariableDefAttr'
        db.create_table('gadget_variabledefattr', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('variableDef',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['gadget.VariableDef'])),
        ))
        db.send_create_signal('gadget', ['VariableDefAttr'])

        # Adding model 'ContextOption'
        db.create_table('gadget_contextoption', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('concept',
             self.gf('django.db.models.fields.CharField')(max_length=256)),
            ('varDef', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['gadget.VariableDef'])),
        ))
        db.send_create_signal('gadget', ['ContextOption'])
Ejemplo n.º 17
0
    def forwards(self, orm):

        if db_table_exists('connectable_filter'):
            return

        # Adding model 'Filter'
        db.create_table('connectable_filter', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('code', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('label', self.gf('django.db.models.fields.CharField')(max_length=50, null=True)),
            ('nature', self.gf('django.db.models.fields.CharField')(max_length=6)),
            ('category', self.gf('django.db.models.fields.CharField')(max_length=6, null=True)),
            ('help_text', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('params', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
        ))
        db.send_create_signal('connectable', ['Filter'])

        # Adding model 'RemoteSubscription'
        db.create_table('connectable_remotesubscription', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('remote_channel', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['remoteChannel.RemoteChannel'])),
            ('operation_code', self.gf('django.db.models.fields.CharField')(max_length=1)),
        ))
        db.send_create_signal('connectable', ['RemoteSubscription'])

        # Adding model 'InOut'
        db.create_table('connectable_inout', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('workspace_variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.WorkSpaceVariable'])),
            ('friend_code', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
            ('filter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['connectable.Filter'], null=True)),
            ('filter_param_values', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('remote_subscription', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['connectable.RemoteSubscription'], null=True)),
            ('readOnly', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('connectable', ['InOut'])

        # Adding model 'In'
        db.create_table('connectable_in', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['igadget.Variable'])),
        ))
        db.send_create_signal('connectable', ['In'])

        # Adding M2M table for field inouts on 'In'
        db.create_table('connectable_in_inouts', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('in', models.ForeignKey(orm['connectable.in'], null=False)),
            ('inout', models.ForeignKey(orm['connectable.inout'], null=False))
        ))
        db.create_unique('connectable_in_inouts', ['in_id', 'inout_id'])

        # Adding model 'Out'
        db.create_table('connectable_out', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('abstract_variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.AbstractVariable'])),
        ))
        db.send_create_signal('connectable', ['Out'])

        # Adding M2M table for field inouts on 'Out'
        db.create_table('connectable_out_inouts', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('out', models.ForeignKey(orm['connectable.out'], null=False)),
            ('inout', models.ForeignKey(orm['connectable.inout'], null=False))
        ))
        db.create_unique('connectable_out_inouts', ['out_id', 'inout_id'])

        # Adding model 'RelatedInOut'
        db.create_table('connectable_relatedinout', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('in_inout', self.gf('django.db.models.fields.related.ForeignKey')(related_name='in_inouts', to=orm['connectable.InOut'])),
            ('out_inout', self.gf('django.db.models.fields.related.ForeignKey')(related_name='out_inouts', to=orm['connectable.InOut'])),
        ))
        db.send_create_signal('connectable', ['RelatedInOut'])
Ejemplo n.º 18
0
    def forwards(self, orm):

        if db_table_exists('workspace_workspace'):
            return

        # Adding model 'WorkSpace'
        db.create_table('workspace_workspace', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='creator', null=True, to=orm['auth.User'])),
            ('branding', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Branding'], null=True, blank=True)),
        ))
        db.send_create_signal('workspace', ['WorkSpace'])

        # Adding M2M table for field targetOrganizations on 'WorkSpace'
        db.create_table('workspace_workspace_targetOrganizations', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('workspace', models.ForeignKey(orm['workspace.workspace'], null=False)),
            ('group', models.ForeignKey(orm['auth.group'], null=False))
        ))
        db.create_unique('workspace_workspace_targetOrganizations', ['workspace_id', 'group_id'])

        # Adding model 'UserWorkSpace'
        db.create_table('workspace_userworkspace', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('workspace', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.WorkSpace'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('active', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('workspace', ['UserWorkSpace'])

        # Adding model 'PublishedWorkSpace'
        db.create_table('workspace_publishedworkspace', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('credentials', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('vendor', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('version', self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('wikiURI', self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('imageURI', self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('author', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('mail', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('organization', self.gf('django.db.models.fields.CharField')(max_length=80, null=True, blank=True)),
            ('workspace', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.WorkSpace'])),
            ('contratable', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('workspace', ['PublishedWorkSpace'])

        # Adding model 'Category'
        db.create_table('workspace_category', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('category_id', self.gf('django.db.models.fields.IntegerField')()),
            ('default_workspace', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.PublishedWorkSpace'], null=True, blank=True)),
            ('new_workspace', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='new_workspace_', null=True, to=orm['workspace.PublishedWorkSpace'])),
        ))
        db.send_create_signal('workspace', ['Category'])

        # Adding model 'AbstractVariable'
        db.create_table('workspace_abstractvariable', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
        ))
        db.send_create_signal('workspace', ['AbstractVariable'])

        # Adding model 'SharedVariableValue'
        db.create_table('workspace_sharedvariablevalue', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('shared_var_def', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['gadget.SharedVariableDef'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('value', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
        ))
        db.send_create_signal('workspace', ['SharedVariableValue'])

        # Adding unique constraint on 'SharedVariableValue', fields ['shared_var_def', 'user']
        db.create_unique('workspace_sharedvariablevalue', ['shared_var_def_id', 'user_id'])

        # Adding model 'VariableValue'
        db.create_table('workspace_variablevalue', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('value', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
            ('abstract_variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.AbstractVariable'])),
            ('shared_var_value', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.SharedVariableValue'], null=True, blank=True)),
        ))
        db.send_create_signal('workspace', ['VariableValue'])

        # Adding model 'WorkSpaceVariable'
        db.create_table('workspace_workspacevariable', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('workspace', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.WorkSpace'])),
            ('abstract_variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.AbstractVariable'])),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=1)),
            ('aspect', self.gf('django.db.models.fields.CharField')(max_length=12)),
        ))
        db.send_create_signal('workspace', ['WorkSpaceVariable'])

        # Adding model 'Tab'
        db.create_table('workspace_tab', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('visible', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('position', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('workspace', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.WorkSpace'])),
            ('abstract_variable', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['workspace.AbstractVariable'])),
        ))
        db.send_create_signal('workspace', ['Tab'])
Ejemplo n.º 19
0
    def forwards(self, orm):

        if db_table_exists('layout_branding'):
            return

        # Adding model 'Branding'
        db.create_table('layout_branding', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('logo', self.gf('django.db.models.fields.CharField')(max_length=500, null=True, blank=True)),
            ('viewer_logo', self.gf('django.db.models.fields.CharField')(max_length=500, null=True, blank=True)),
            ('link', self.gf('django.db.models.fields.URLField')(max_length=500, null=True, blank=True)),
        ))
        db.send_create_signal('layout', ['Branding'])

        # Adding model 'Theme'
        db.create_table('layout_theme', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=250)),
            ('theme_css', self.gf('django.db.models.fields.TextField')()),
            ('images', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('layout', ['Theme'])

        # Adding model 'Layout'
        db.create_table('layout_layout', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=250)),
            ('templates', self.gf('django.db.models.fields.TextField')()),
            ('elements', self.gf('django.db.models.fields.TextField')()),
            ('layout_css', self.gf('django.db.models.fields.TextField')()),
            ('theme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Theme'])),
        ))
        db.send_create_signal('layout', ['Layout'])

        # Adding model 'SkinTemplate'
        db.create_table('layout_skintemplate', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('properties', self.gf('django.db.models.fields.TextField')()),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=25)),
            ('layout', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Layout'], null=True, blank=True)),
            ('template_file', self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['SkinTemplate'])

        # Adding model 'Skin'
        db.create_table('layout_skin', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
            ('properties', self.gf('django.db.models.fields.TextField')()),
            ('skin_template', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.SkinTemplate'])),
            ('layout', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Layout'], null=True, blank=True)),
            ('default', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('layout', ['Skin'])

        # Adding unique constraint on 'Skin', fields ['name', 'layout']
        db.create_unique('layout_skin', ['name', 'layout_id'])

        # Adding model 'ThemeBranding'
        db.create_table('layout_themebranding', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('theme', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Theme'])),
            ('branding', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Branding'])),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['ThemeBranding'])

        # Adding unique constraint on 'ThemeBranding', fields ['theme', 'branding', 'type']
        db.create_unique('layout_themebranding', ['theme_id', 'branding_id', 'type'])

        # Adding model 'SkinOrganization'
        db.create_table('layout_skinorganization', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('skin', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Skin'])),
            ('organization', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.Group'])),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['SkinOrganization'])

        # Adding unique constraint on 'SkinOrganization', fields ['skin', 'organization', 'type']
        db.create_unique('layout_skinorganization', ['skin_id', 'organization_id', 'type'])

        # Adding model 'BrandingOrganization'
        db.create_table('layout_brandingorganization', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('branding', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['layout.Branding'])),
            ('organization', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.Group'])),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=25)),
        ))
        db.send_create_signal('layout', ['BrandingOrganization'])

        # Adding unique constraint on 'BrandingOrganization', fields ['branding', 'organization', 'type']
        db.create_unique('layout_brandingorganization', ['branding_id', 'organization_id', 'type'])
Ejemplo n.º 20
0
    def forwards(self, orm):

        if db_table_exists('catalogue_translation'):
            return

        # Adding model 'Translation'
        db.create_table('catalogue_translation', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('text_id',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('element_id', self.gf('django.db.models.fields.IntegerField')()),
            ('table',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('language',
             self.gf('django.db.models.fields.CharField')(max_length=2)),
            ('value', self.gf('django.db.models.fields.TextField')(null=True)),
            ('default',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('catalogue', ['Translation'])

        # Adding model 'GadgetResource'
        db.create_table('catalogue_gadgetresource', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('short_name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('display_name', self.gf('django.db.models.fields.CharField')(
                max_length=250, null=True, blank=True)),
            ('vendor',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('version',
             self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('ie_compatible',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('solution',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('author',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('mail',
             self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'], null=True, blank=True)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('size', self.gf('django.db.models.fields.CharField')(
                max_length=10, null=True, blank=True)),
            ('license', self.gf('django.db.models.fields.CharField')(
                max_length=20, null=True, blank=True)),
            ('gadget_uri', self.gf('django.db.models.fields.CharField')(
                max_length=200, null=True, blank=True)),
            ('creation_date',
             self.gf('django.db.models.fields.DateTimeField')(null=True)),
            ('image_uri', self.gf('django.db.models.fields.CharField')(
                max_length=200, null=True)),
            ('iphone_image_uri', self.gf('django.db.models.fields.CharField')(
                max_length=200, null=True, blank=True)),
            ('wiki_page_uri',
             self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('template_uri',
             self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('mashup_id', self.gf('django.db.models.fields.IntegerField')(
                null=True, blank=True)),
            ('certification',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 blank=True,
                 related_name='certification',
                 null=True,
                 to=orm['auth.Group'])),
            ('popularity', self.gf('django.db.models.fields.DecimalField')(
                null=True, max_digits=2, decimal_places=1)),
            ('fromWGT',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('catalogue', ['GadgetResource'])

        # Adding unique constraint on 'GadgetResource', fields ['short_name', 'vendor', 'version']
        db.create_unique('catalogue_gadgetresource',
                         ['short_name', 'vendor', 'version'])

        # Adding M2M table for field organization on 'GadgetResource'
        db.create_table(
            'catalogue_gadgetresource_organization',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('gadgetresource',
              models.ForeignKey(orm['catalogue.gadgetresource'], null=False)),
             ('group', models.ForeignKey(orm['auth.group'], null=False))))
        db.create_unique('catalogue_gadgetresource_organization',
                         ['gadgetresource_id', 'group_id'])

        # Adding model 'Capability'
        db.create_table('catalogue_capability', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('value',
             self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('resource', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['catalogue.GadgetResource'])),
        ))
        db.send_create_signal('catalogue', ['Capability'])

        # Adding unique constraint on 'Capability', fields ['name', 'value', 'resource']
        db.create_unique('catalogue_capability',
                         ['name', 'value', 'resource_id'])

        # Adding model 'UserRelatedToGadgetResource'
        db.create_table('catalogue_userrelatedtogadgetresource', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['catalogue.GadgetResource'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('added_by', self.gf('django.db.models.fields.NullBooleanField')(
                null=True, blank=True)),
            ('preferred_by',
             self.gf('django.db.models.fields.NullBooleanField')(null=True,
                                                                 blank=True)),
        ))
        db.send_create_signal('catalogue', ['UserRelatedToGadgetResource'])

        # Adding unique constraint on 'UserRelatedToGadgetResource', fields ['gadget', 'user']
        db.create_unique('catalogue_userrelatedtogadgetresource',
                         ['gadget_id', 'user_id'])

        # Adding model 'GadgetWiring'
        db.create_table('catalogue_gadgetwiring', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('friendcode', self.gf('django.db.models.fields.CharField')(
                max_length=30, null=True, blank=True)),
            ('wiring',
             self.gf('django.db.models.fields.CharField')(max_length=5)),
            ('idResource',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['catalogue.GadgetResource'])),
        ))
        db.send_create_signal('catalogue', ['GadgetWiring'])

        # Adding model 'Tag'
        db.create_table('catalogue_tag', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(
                unique=True, max_length=20)),
        ))
        db.send_create_signal('catalogue', ['Tag'])

        # Adding model 'UserTag'
        db.create_table('catalogue_usertag', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('tag', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['catalogue.Tag'])),
            ('weight', self.gf('django.db.models.fields.CharField')(
                max_length=20, null=True)),
            ('criteria', self.gf('django.db.models.fields.CharField')(
                max_length=20, null=True)),
            ('value', self.gf('django.db.models.fields.CharField')(
                max_length=20, null=True)),
            ('idUser', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('idResource',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['catalogue.GadgetResource'])),
        ))
        db.send_create_signal('catalogue', ['UserTag'])

        # Adding unique constraint on 'UserTag', fields ['tag', 'idUser', 'idResource']
        db.create_unique('catalogue_usertag',
                         ['tag_id', 'idUser_id', 'idResource_id'])

        # Adding model 'Category'
        db.create_table('catalogue_category', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(
                unique=True, max_length=50)),
            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['catalogue.Category'], null=True, blank=True)),
        ))
        db.send_create_signal('catalogue', ['Category'])

        # Adding M2M table for field tags on 'Category'
        db.create_table(
            'catalogue_category_tags',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('category',
              models.ForeignKey(orm['catalogue.category'], null=False)),
             ('tag', models.ForeignKey(orm['catalogue.tag'], null=False))))
        db.create_unique('catalogue_category_tags', ['category_id', 'tag_id'])

        # Adding M2M table for field organizations on 'Category'
        db.create_table(
            'catalogue_category_organizations',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('category',
              models.ForeignKey(orm['catalogue.category'], null=False)),
             ('group', models.ForeignKey(orm['auth.group'], null=False))))
        db.create_unique('catalogue_category_organizations',
                         ['category_id', 'group_id'])

        # Adding model 'UserVote'
        db.create_table('catalogue_uservote', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('idUser', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('idResource',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['catalogue.GadgetResource'])),
            ('vote', self.gf('django.db.models.fields.SmallIntegerField')()),
        ))
        db.send_create_signal('catalogue', ['UserVote'])

        # Adding unique constraint on 'UserVote', fields ['idUser', 'idResource']
        db.create_unique('catalogue_uservote', ['idUser_id', 'idResource_id'])

        # Adding model 'Application'
        db.create_table('catalogue_application', (
            ('tag', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['catalogue.Tag'])),
            ('app_code', self.gf('django.db.models.fields.IntegerField')(
                primary_key=True)),
            ('template_uri', self.gf('django.db.models.fields.URLField')(
                max_length=200, null=True, blank=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('short_name',
             self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('image_uri', self.gf('django.db.models.fields.URLField')(
                max_length=200, null=True)),
            ('vendor',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('subscription_price',
             self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('monthly_price',
             self.gf('django.db.models.fields.CharField')(max_length=100)),
        ))
        db.send_create_signal('catalogue', ['Application'])

        # Adding M2M table for field resources on 'Application'
        db.create_table(
            'catalogue_application_resources',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('application',
              models.ForeignKey(orm['catalogue.application'], null=False)),
             ('gadgetresource',
              models.ForeignKey(orm['catalogue.gadgetresource'], null=False))))
        db.create_unique('catalogue_application_resources',
                         ['application_id', 'gadgetresource_id'])
Ejemplo n.º 21
0
    def forwards(self, orm):

        if db_table_exists('workspace_workspace'):
            return

        # Adding model 'WorkSpace'
        db.create_table('workspace_workspace', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(
                blank=True,
                related_name='creator',
                null=True,
                to=orm['auth.User'])),
            ('branding', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['layout.Branding'], null=True, blank=True)),
        ))
        db.send_create_signal('workspace', ['WorkSpace'])

        # Adding M2M table for field targetOrganizations on 'WorkSpace'
        db.create_table(
            'workspace_workspace_targetOrganizations',
            (('id',
              models.AutoField(
                  verbose_name='ID', primary_key=True, auto_created=True)),
             ('workspace',
              models.ForeignKey(orm['workspace.workspace'], null=False)),
             ('group', models.ForeignKey(orm['auth.group'], null=False))))
        db.create_unique('workspace_workspace_targetOrganizations',
                         ['workspace_id', 'group_id'])

        # Adding model 'UserWorkSpace'
        db.create_table('workspace_userworkspace', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.WorkSpace'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('active',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('workspace', ['UserWorkSpace'])

        # Adding model 'PublishedWorkSpace'
        db.create_table('workspace_publishedworkspace', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('credentials',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('vendor',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('version',
             self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('wikiURI',
             self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('imageURI',
             self.gf('django.db.models.fields.URLField')(max_length=200)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('author',
             self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('mail',
             self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('organization', self.gf('django.db.models.fields.CharField')(
                max_length=80, null=True, blank=True)),
            ('workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.WorkSpace'])),
            ('contratable',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('workspace', ['PublishedWorkSpace'])

        # Adding model 'Category'
        db.create_table('workspace_category', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('category_id', self.gf('django.db.models.fields.IntegerField')()),
            ('default_workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.PublishedWorkSpace'], null=True,
                 blank=True)),
            ('new_workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 blank=True,
                 related_name='new_workspace_',
                 null=True,
                 to=orm['workspace.PublishedWorkSpace'])),
        ))
        db.send_create_signal('workspace', ['Category'])

        # Adding model 'AbstractVariable'
        db.create_table('workspace_abstractvariable', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
        ))
        db.send_create_signal('workspace', ['AbstractVariable'])

        # Adding model 'SharedVariableValue'
        db.create_table('workspace_sharedvariablevalue', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('shared_var_def',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['gadget.SharedVariableDef'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('value', self.gf('django.db.models.fields.TextField')(
                null=True, blank=True)),
        ))
        db.send_create_signal('workspace', ['SharedVariableValue'])

        # Adding unique constraint on 'SharedVariableValue', fields ['shared_var_def', 'user']
        db.create_unique('workspace_sharedvariablevalue',
                         ['shared_var_def_id', 'user_id'])

        # Adding model 'VariableValue'
        db.create_table('workspace_variablevalue', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                to=orm['auth.User'])),
            ('value', self.gf('django.db.models.fields.TextField')(
                null=True, blank=True)),
            ('abstract_variable',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.AbstractVariable'])),
            ('shared_var_value',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.SharedVariableValue'],
                 null=True,
                 blank=True)),
        ))
        db.send_create_signal('workspace', ['VariableValue'])

        # Adding model 'WorkSpaceVariable'
        db.create_table('workspace_workspacevariable', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.WorkSpace'])),
            ('abstract_variable',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.AbstractVariable'])),
            ('type',
             self.gf('django.db.models.fields.CharField')(max_length=1)),
            ('aspect',
             self.gf('django.db.models.fields.CharField')(max_length=12)),
        ))
        db.send_create_signal('workspace', ['WorkSpaceVariable'])

        # Adding model 'Tab'
        db.create_table('workspace_tab', (
            ('id',
             self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name',
             self.gf('django.db.models.fields.CharField')(max_length=30)),
            ('visible',
             self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('position', self.gf('django.db.models.fields.IntegerField')(
                null=True, blank=True)),
            ('workspace',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.WorkSpace'])),
            ('abstract_variable',
             self.gf('django.db.models.fields.related.ForeignKey')(
                 to=orm['workspace.AbstractVariable'])),
        ))
        db.send_create_signal('workspace', ['Tab'])
Ejemplo n.º 22
0
    def forwards(self, orm):

        if db_table_exists('catalogue_translation'):
            return

        # Adding model 'Translation'
        db.create_table('catalogue_translation', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('text_id', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('element_id', self.gf('django.db.models.fields.IntegerField')()),
            ('table', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('language', self.gf('django.db.models.fields.CharField')(max_length=2)),
            ('value', self.gf('django.db.models.fields.TextField')(null=True)),
            ('default', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('catalogue', ['Translation'])

        # Adding model 'GadgetResource'
        db.create_table('catalogue_gadgetresource', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('short_name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('display_name', self.gf('django.db.models.fields.CharField')(max_length=250, null=True, blank=True)),
            ('vendor', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('version', self.gf('django.db.models.fields.CharField')(max_length=150)),
            ('ie_compatible', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('solution', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('author', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('mail', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('creator', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('size', self.gf('django.db.models.fields.CharField')(max_length=10, null=True, blank=True)),
            ('license', self.gf('django.db.models.fields.CharField')(max_length=20, null=True, blank=True)),
            ('gadget_uri', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
            ('creation_date', self.gf('django.db.models.fields.DateTimeField')(null=True)),
            ('image_uri', self.gf('django.db.models.fields.CharField')(max_length=200, null=True)),
            ('iphone_image_uri', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
            ('wiki_page_uri', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('template_uri', self.gf('django.db.models.fields.CharField')(max_length=200)),
            ('mashup_id', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
            ('certification', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='certification', null=True, to=orm['auth.Group'])),
            ('popularity', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=2, decimal_places=1)),
            ('fromWGT', self.gf('django.db.models.fields.BooleanField')(default=False)),
        ))
        db.send_create_signal('catalogue', ['GadgetResource'])

        # Adding unique constraint on 'GadgetResource', fields ['short_name', 'vendor', 'version']
        db.create_unique('catalogue_gadgetresource', ['short_name', 'vendor', 'version'])

        # Adding M2M table for field organization on 'GadgetResource'
        db.create_table('catalogue_gadgetresource_organization', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('gadgetresource', models.ForeignKey(orm['catalogue.gadgetresource'], null=False)),
            ('group', models.ForeignKey(orm['auth.group'], null=False))
        ))
        db.create_unique('catalogue_gadgetresource_organization', ['gadgetresource_id', 'group_id'])

        # Adding model 'Capability'
        db.create_table('catalogue_capability', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('resource', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.GadgetResource'])),
        ))
        db.send_create_signal('catalogue', ['Capability'])

        # Adding unique constraint on 'Capability', fields ['name', 'value', 'resource']
        db.create_unique('catalogue_capability', ['name', 'value', 'resource_id'])

        # Adding model 'UserRelatedToGadgetResource'
        db.create_table('catalogue_userrelatedtogadgetresource', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('gadget', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.GadgetResource'])),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('added_by', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
            ('preferred_by', self.gf('django.db.models.fields.NullBooleanField')(null=True, blank=True)),
        ))
        db.send_create_signal('catalogue', ['UserRelatedToGadgetResource'])

        # Adding unique constraint on 'UserRelatedToGadgetResource', fields ['gadget', 'user']
        db.create_unique('catalogue_userrelatedtogadgetresource', ['gadget_id', 'user_id'])

        # Adding model 'GadgetWiring'
        db.create_table('catalogue_gadgetwiring', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('friendcode', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
            ('wiring', self.gf('django.db.models.fields.CharField')(max_length=5)),
            ('idResource', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.GadgetResource'])),
        ))
        db.send_create_signal('catalogue', ['GadgetWiring'])

        # Adding model 'Tag'
        db.create_table('catalogue_tag', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=20)),
        ))
        db.send_create_signal('catalogue', ['Tag'])

        # Adding model 'UserTag'
        db.create_table('catalogue_usertag', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('tag', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Tag'])),
            ('weight', self.gf('django.db.models.fields.CharField')(max_length=20, null=True)),
            ('criteria', self.gf('django.db.models.fields.CharField')(max_length=20, null=True)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=20, null=True)),
            ('idUser', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('idResource', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.GadgetResource'])),
        ))
        db.send_create_signal('catalogue', ['UserTag'])

        # Adding unique constraint on 'UserTag', fields ['tag', 'idUser', 'idResource']
        db.create_unique('catalogue_usertag', ['tag_id', 'idUser_id', 'idResource_id'])

        # Adding model 'Category'
        db.create_table('catalogue_category', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=50)),
            ('parent', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Category'], null=True, blank=True)),
        ))
        db.send_create_signal('catalogue', ['Category'])

        # Adding M2M table for field tags on 'Category'
        db.create_table('catalogue_category_tags', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('category', models.ForeignKey(orm['catalogue.category'], null=False)),
            ('tag', models.ForeignKey(orm['catalogue.tag'], null=False))
        ))
        db.create_unique('catalogue_category_tags', ['category_id', 'tag_id'])

        # Adding M2M table for field organizations on 'Category'
        db.create_table('catalogue_category_organizations', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('category', models.ForeignKey(orm['catalogue.category'], null=False)),
            ('group', models.ForeignKey(orm['auth.group'], null=False))
        ))
        db.create_unique('catalogue_category_organizations', ['category_id', 'group_id'])

        # Adding model 'UserVote'
        db.create_table('catalogue_uservote', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('idUser', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
            ('idResource', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.GadgetResource'])),
            ('vote', self.gf('django.db.models.fields.SmallIntegerField')()),
        ))
        db.send_create_signal('catalogue', ['UserVote'])

        # Adding unique constraint on 'UserVote', fields ['idUser', 'idResource']
        db.create_unique('catalogue_uservote', ['idUser_id', 'idResource_id'])

        # Adding model 'Application'
        db.create_table('catalogue_application', (
            ('tag', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Tag'])),
            ('app_code', self.gf('django.db.models.fields.IntegerField')(primary_key=True)),
            ('template_uri', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('short_name', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('image_uri', self.gf('django.db.models.fields.URLField')(max_length=200, null=True)),
            ('vendor', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('subscription_price', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('monthly_price', self.gf('django.db.models.fields.CharField')(max_length=100)),
        ))
        db.send_create_signal('catalogue', ['Application'])

        # Adding M2M table for field resources on 'Application'
        db.create_table('catalogue_application_resources', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('application', models.ForeignKey(orm['catalogue.application'], null=False)),
            ('gadgetresource', models.ForeignKey(orm['catalogue.gadgetresource'], null=False))
        ))
        db.create_unique('catalogue_application_resources', ['application_id', 'gadgetresource_id'])