Skip to content
This repository
Browse code

Created migrations for remaining apps (fixes #504)

  • Loading branch information...
commit ed0c4374386d2621e156a266a554d62a0af7a1b2 1 parent 600b737
Dimitris Glezos glezos authored
189 transifex/reviews/migrations/0001_initial.py
... ... @@ -0,0 +1,189 @@
  1 +
  2 +from south.db import db
  3 +from django.db import models
  4 +from reviews.models import *
  5 +from txcommon.db.models import IntegerTupleField
  6 +
  7 +class Migration:
  8 +
  9 + def forwards(self, orm):
  10 +
  11 + # Adding model 'ReviewLike'
  12 + db.create_table('reviews_reviewlike', (
  13 + ('id', orm['reviews.ReviewLike:id']),
  14 + ('like', orm['reviews.ReviewLike:like']),
  15 + ('reviewrequest', orm['reviews.ReviewLike:reviewrequest']),
  16 + ('user', orm['reviews.ReviewLike:user']),
  17 + ))
  18 + db.send_create_signal('reviews', ['ReviewLike'])
  19 +
  20 + # Adding model 'POReviewRequest'
  21 + db.create_table('reviews_poreviewrequest', (
  22 + ('id', orm['reviews.POReviewRequest:id']),
  23 + ('description', orm['reviews.POReviewRequest:description']),
  24 + ('status', orm['reviews.POReviewRequest:status']),
  25 + ('resolution', orm['reviews.POReviewRequest:resolution']),
  26 + ('created_on', orm['reviews.POReviewRequest:created_on']),
  27 + ('last_updated', orm['reviews.POReviewRequest:last_updated']),
  28 + ('file_name', orm['reviews.POReviewRequest:file_name']),
  29 + ('target_filename', orm['reviews.POReviewRequest:target_filename']),
  30 + ('lang_code', orm['reviews.POReviewRequest:lang_code']),
  31 + ('component', orm['reviews.POReviewRequest:component']),
  32 + ('author', orm['reviews.POReviewRequest:author']),
  33 + ))
  34 + db.send_create_signal('reviews', ['POReviewRequest'])
  35 +
  36 +
  37 +
  38 + def backwards(self, orm):
  39 +
  40 + # Deleting model 'ReviewLike'
  41 + db.delete_table('reviews_reviewlike')
  42 +
  43 + # Deleting model 'POReviewRequest'
  44 + db.delete_table('reviews_poreviewrequest')
  45 +
  46 +
  47 +
  48 + models = {
  49 + 'auth.group': {
  50 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  51 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
  52 + 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
  53 + },
  54 + 'auth.permission': {
  55 + 'Meta': {'unique_together': "(('content_type', 'codename'),)"},
  56 + 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  57 + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
  58 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  59 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
  60 + },
  61 + 'auth.user': {
  62 + 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  63 + 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
  64 + 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  65 + 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
  66 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  67 + 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  68 + 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  69 + 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  70 + 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
  71 + 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
  72 + 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
  73 + 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
  74 + 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
  75 + },
  76 + 'codebases.unit': {
  77 + 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  78 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  79 + 'last_checkout': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
  80 + 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  81 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
  82 + 'root': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  83 + 'type': ('django.db.models.fields.CharField', [], {'max_length': '10'})
  84 + },
  85 + 'contenttypes.contenttype': {
  86 + 'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
  87 + 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  88 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  89 + 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  90 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
  91 + },
  92 + 'languages.language': {
  93 + 'Meta': {'db_table': "'translations_language'"},
  94 + 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}),
  95 + 'code_aliases': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'null': 'True'}),
  96 + 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  97 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  98 + 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}),
  99 + 'nplurals': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
  100 + 'pluralequation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  101 + 'specialchars': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
  102 + },
  103 + 'projects.component': {
  104 + 'Meta': {'unique_together': "(('project', 'slug'),)"},
  105 + '_unit': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['codebases.Unit']", 'unique': 'True', 'null': 'True', 'db_column': "'unit_id'", 'blank': 'True'}),
  106 + 'allows_submission': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  107 + 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  108 + 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  109 + 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  110 + 'file_filter': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
  111 + 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
  112 + 'hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  113 + 'i18n_type': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
  114 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  115 + 'long_description': ('django.db.models.fields.TextField', [], {'max_length': '1000', 'blank': 'True'}),
  116 + 'long_description_html': ('django.db.models.fields.TextField', [], {'max_length': '1000', 'blank': 'True'}),
  117 + 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  118 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
  119 + 'pofiles': ('django.contrib.contenttypes.generic.GenericRelation', [], {'to': "orm['translations.POFile']"}),
  120 + 'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['projects.Project']"}),
  121 + 'should_calculate': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  122 + 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '30', 'db_index': 'True'}),
  123 + 'source_lang': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
  124 + 'submission_type': ('django.db.models.fields.CharField', [], {'max_length': '10', 'blank': 'True'})
  125 + },
  126 + 'projects.project': {
  127 + 'anyone_submit': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  128 + 'bug_tracker': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
  129 + 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  130 + 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  131 + 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  132 + 'feed': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
  133 + 'hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  134 + 'homepage': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
  135 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  136 + 'long_description': ('django.db.models.fields.TextField', [], {'max_length': '1000', 'blank': 'True'}),
  137 + 'long_description_html': ('django.db.models.fields.TextField', [], {'max_length': '1000', 'blank': 'True'}),
  138 + 'maintainers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'null': 'True'}),
  139 + 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  140 + 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
  141 + 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '30', 'db_index': 'True'}),
  142 + 'tags': ('tagging.fields.TagField', [], {})
  143 + },
  144 + 'reviews.poreviewrequest': {
  145 + 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
  146 + 'component': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reviews'", 'to': "orm['projects.Component']"}),
  147 + 'created_on': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  148 + 'description': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True', 'blank': 'True'}),
  149 + 'file_name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
  150 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  151 + 'lang_code': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
  152 + 'last_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  153 + 'resolution': ('django.db.models.fields.CharField', [], {'default': "'N'", 'max_length': '1'}),
  154 + 'scorers': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']"}),
  155 + 'status': ('django.db.models.fields.CharField', [], {'default': "'O'", 'max_length': '1'}),
  156 + 'target_filename': ('django.db.models.fields.CharField', [], {'max_length': '255'})
  157 + },
  158 + 'reviews.reviewlike': {
  159 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  160 + 'like': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True'}),
  161 + 'reviewrequest': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['reviews.POReviewRequest']"}),
  162 + 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
  163 + },
  164 + 'translations.pofile': {
  165 + 'Meta': {'unique_together': "(('content_type', 'object_id', 'filename'),)"},
  166 + 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
  167 + 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
  168 + 'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  169 + 'error': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
  170 + 'filename': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
  171 + 'fuzzy': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  172 + 'fuzzy_perc': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  173 + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  174 + 'is_msgmerged': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
  175 + 'is_pot': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
  176 + 'language': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['languages.Language']", 'null': 'True'}),
  177 + 'language_code': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True'}),
  178 + 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
  179 + 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
  180 + 'rev': ('IntegerTupleField', [], {'max_length': '64', 'null': 'True'}),
  181 + 'total': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  182 + 'trans': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  183 + 'trans_perc': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  184 + 'untrans': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
  185 + 'untrans_perc': ('django.db.models.fields.PositiveIntegerField', [], {'default': '100'})
  186 + }
  187 + }
  188 +
  189 + complete_apps = ['reviews']
0  transifex/reviews/migrations/__init__.py
No changes.

0 comments on commit ed0c437

Please sign in to comment.
Something went wrong with that request. Please try again.