summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/migrations/0002_auto__add_field_build_timespent.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/migrations/0002_auto__add_field_build_timespent.py')
-rw-r--r--bitbake/lib/toaster/orm/migrations/0002_auto__add_field_build_timespent.py180
1 files changed, 180 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/migrations/0002_auto__add_field_build_timespent.py b/bitbake/lib/toaster/orm/migrations/0002_auto__add_field_build_timespent.py
new file mode 100644
index 0000000..c01b50a
--- /dev/null
+++ b/bitbake/lib/toaster/orm/migrations/0002_auto__add_field_build_timespent.py
@@ -0,0 +1,180 @@
1# -*- coding: utf-8 -*-
2from south.utils import datetime_utils as datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7
8class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding field 'Build.timespent'
12 db.add_column(u'orm_build', 'timespent',
13 self.gf('django.db.models.fields.IntegerField')(default=0),
14 keep_default=False)
15
16
17 def backwards(self, orm):
18 # Deleting field 'Build.timespent'
19 db.delete_column(u'orm_build', 'timespent')
20
21
22 models = {
23 u'orm.build': {
24 'Meta': {'object_name': 'Build'},
25 'bitbake_version': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
26 'build_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
27 'completed_on': ('django.db.models.fields.DateTimeField', [], {}),
28 'cooker_log_path': ('django.db.models.fields.CharField', [], {'max_length': '500'}),
29 'distro': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
30 'distro_version': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
31 'errors_no': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
32 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33 'image_fstypes': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
34 'machine': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
35 'outcome': ('django.db.models.fields.IntegerField', [], {'default': '2'}),
36 'started_on': ('django.db.models.fields.DateTimeField', [], {}),
37 'timespent': ('django.db.models.fields.IntegerField', [], {}),
38 'warnings_no': ('django.db.models.fields.IntegerField', [], {'default': '0'})
39 },
40 u'orm.layer': {
41 'Meta': {'object_name': 'Layer'},
42 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'layer_index_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
44 'local_path': ('django.db.models.fields.FilePathField', [], {'max_length': '255'}),
45 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
46 },
47 u'orm.layer_version': {
48 'Meta': {'object_name': 'Layer_Version'},
49 'branch': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
50 'build': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'layer_version_build'", 'to': u"orm['orm.Build']"}),
51 'commit': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'layer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'layer_version_layer'", 'to': u"orm['orm.Layer']"}),
54 'priority': ('django.db.models.fields.IntegerField', [], {})
55 },
56 u'orm.logmessage': {
57 'Meta': {'object_name': 'LogMessage'},
58 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
59 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'level': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
61 'lineno': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
62 'message': ('django.db.models.fields.CharField', [], {'max_length': '240'}),
63 'pathname': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'})
64 },
65 u'orm.package': {
66 'Meta': {'object_name': 'Package'},
67 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
68 'description': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
69 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70 'installed_size': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
71 'license': ('django.db.models.fields.CharField', [], {'max_length': '80', 'blank': 'True'}),
72 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
73 'recipe': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Recipe']", 'null': 'True'}),
74 'revision': ('django.db.models.fields.CharField', [], {'max_length': '32', 'blank': 'True'}),
75 'section': ('django.db.models.fields.CharField', [], {'max_length': '80', 'blank': 'True'}),
76 'size': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
77 'summary': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
78 'version': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
79 },
80 u'orm.package_dependency': {
81 'Meta': {'object_name': 'Package_Dependency'},
82 'dep_type': ('django.db.models.fields.IntegerField', [], {}),
83 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_dependencies_target'", 'to': u"orm['orm.Package']"}),
84 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'package_dependencies_source'", 'to': u"orm['orm.Package']"}),
86 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Target']", 'null': 'True'})
87 },
88 u'orm.package_file': {
89 'Meta': {'object_name': 'Package_File'},
90 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91 'package': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'buildfilelist_package'", 'to': u"orm['orm.Package']"}),
92 'path': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
93 'size': ('django.db.models.fields.IntegerField', [], {})
94 },
95 u'orm.recipe': {
96 'Meta': {'object_name': 'Recipe'},
97 'bugtracker': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
98 'description': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
99 'file_path': ('django.db.models.fields.FilePathField', [], {'max_length': '255'}),
100 'homepage': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
101 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102 'layer_version': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'recipe_layer_version'", 'to': u"orm['orm.Layer_Version']"}),
103 'license': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
104 'licensing_info': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
105 'name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
106 'section': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
107 'summary': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
108 'version': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
109 },
110 u'orm.recipe_dependency': {
111 'Meta': {'object_name': 'Recipe_Dependency'},
112 'dep_type': ('django.db.models.fields.IntegerField', [], {}),
113 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'r_dependencies_depends'", 'to': u"orm['orm.Recipe']"}),
114 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
115 'recipe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'r_dependencies_recipe'", 'to': u"orm['orm.Recipe']"})
116 },
117 u'orm.target': {
118 'Meta': {'object_name': 'Target'},
119 'build': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Build']"}),
120 'file_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
121 'file_size': ('django.db.models.fields.IntegerField', [], {}),
122 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
123 'is_image': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124 'target': ('django.db.models.fields.CharField', [], {'max_length': '100'})
125 },
126 u'orm.target_installed_package': {
127 'Meta': {'object_name': 'Target_Installed_Package'},
128 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
129 'package': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Package']"}),
130 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['orm.Target']"})
131 },
132 u'orm.task': {
133 'Meta': {'ordering': "('order', 'recipe')", 'object_name': 'Task'},
134 'build': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'task_build'", 'to': u"orm['orm.Build']"}),
135 'cpu_usage': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '6', 'decimal_places': '2'}),
136 'disk_io': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
137 'elapsed_time': ('django.db.models.fields.CharField', [], {'default': '0', 'max_length': '50'}),
138 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139 'line_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
140 'logfile': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
141 'message': ('django.db.models.fields.CharField', [], {'max_length': '240'}),
142 'order': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
143 'outcome': ('django.db.models.fields.IntegerField', [], {'default': '5'}),
144 'path_to_sstate_obj': ('django.db.models.fields.FilePathField', [], {'max_length': '500', 'blank': 'True'}),
145 'recipe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'build_recipe'", 'to': u"orm['orm.Recipe']"}),
146 'script_type': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
147 'source_url': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'}),
148 'sstate_checksum': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
149 'sstate_result': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
150 'task_executed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151 'task_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
152 'work_directory': ('django.db.models.fields.FilePathField', [], {'max_length': '255', 'blank': 'True'})
153 },
154 u'orm.task_dependency': {
155 'Meta': {'object_name': 'Task_Dependency'},
156 'depends_on': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'task_dependencies_depends'", 'to': u"orm['orm.Task']"}),
157 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
158 'task': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'task_dependencies_task'", 'to': u"orm['orm.Task']"})
159 },
160 u'orm.variable': {
161 'Meta': {'object_name': 'Variable'},
162 'build': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'variable_build'", 'to': u"orm['orm.Build']"}),
163 'changed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
164 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
165 'human_readable_name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
166 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167 'variable_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
168 'variable_value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
169 },
170 u'orm.variablehistory': {
171 'Meta': {'object_name': 'VariableHistory'},
172 'file_name': ('django.db.models.fields.FilePathField', [], {'max_length': '255'}),
173 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174 'line_number': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
175 'operation': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
176 'variable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vhistory'", 'to': u"orm['orm.Variable']"})
177 }
178 }
179
180 complete_apps = ['orm'] \ No newline at end of file