Download:
child 67:cdceebad7d96
parent 65:db29d521fe06
66:db31e73bde12
Anton Shestakov <av6@dwimlabs.net>, Sat, 25 Jun 2016 18:16:39 +0800
models: drop Check.raw field (not worth storing in the same table) Replaying checks can be done (and is easier) when storing checker output in plain files, so let's lighten up the load on the database.

2 файлов изменено, 0 вставок(+), 4 удалений(-) [+]
candolint/models.py file | annotate | diff | comparison | revisions
incoming.py file | annotate | diff | comparison | revisions
--- a/candolint/models.py Sat Jun 25 17:10:24 2016 +0800
+++ b/candolint/models.py Sat Jun 25 18:16:39 2016 +0800
@@ -71,7 +71,6 @@
ordinal = pw.IntegerField()
errors = pw.IntegerField()
warnings = pw.IntegerField()
- raw = pw.TextField()
lines = pw.TextField()
success = pw.BooleanField()
started = pw.DateTimeField()
--- a/incoming.py Sat Jun 25 17:10:24 2016 +0800
+++ b/incoming.py Sat Jun 25 18:16:39 2016 +0800
@@ -74,8 +74,6 @@
def insert_check(lines):
- text = ''.join(lines)
-
meta_prefix = '# C&O '
state = None
@@ -171,7 +169,6 @@
ordinal=Check.select().where(Check.project == project).count() + 1,
errors=errors,
warnings=warnings,
- raw=text,
lines=json_encode(result),
success=success,
started=started,