diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2010-07-05 23:44:23 +0000 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-07-08 23:26:49 -0500 |
commit | 2b514771564024df2fb89e5b4351eef903f9947d (patch) | |
tree | 9b9e362d62479eb8782e0b794c2007c96ac5554b /src/lib/Server/Reports/reports | |
parent | 1245c432c2b3a5b3854efa17ca45504492328c41 (diff) | |
download | bcfg2-2b514771564024df2fb89e5b4351eef903f9947d.tar.gz bcfg2-2b514771564024df2fb89e5b4351eef903f9947d.tar.bz2 bcfg2-2b514771564024df2fb89e5b4351eef903f9947d.zip |
DBStats: Improved handling of binary objects in the database
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5962 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Reports/reports')
-rw-r--r-- | src/lib/Server/Reports/reports/fixtures/initial_version.xml | 4 | ||||
-rw-r--r-- | src/lib/Server/Reports/reports/models.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Server/Reports/reports/fixtures/initial_version.xml b/src/lib/Server/Reports/reports/fixtures/initial_version.xml index 5c9ca2de5..1b1359eed 100644 --- a/src/lib/Server/Reports/reports/fixtures/initial_version.xml +++ b/src/lib/Server/Reports/reports/fixtures/initial_version.xml @@ -28,4 +28,8 @@ <field type='IntegerField' name='version'>16</field> <field type='DateTimeField' name='updated'>2010-06-01 12:26:10</field> </object> + <object pk="7" model="reports.internaldatabaseversion"> + <field type='IntegerField' name='version'>17</field> + <field type='DateTimeField' name='updated'>2010-07-02 00:00:00</field> + </object> </django-objects> diff --git a/src/lib/Server/Reports/reports/models.py b/src/lib/Server/Reports/reports/models.py index 5410ce37b..52073c153 100644 --- a/src/lib/Server/Reports/reports/models.py +++ b/src/lib/Server/Reports/reports/models.py @@ -222,6 +222,7 @@ class Reason(models.Model): current_version = models.TextField(max_length=128, blank=True) current_exists = models.BooleanField()#False means its missing. Default True current_diff = models.TextField(max_length=1280, blank=True) + is_binary = models.BooleanField(default=False) def _str_(self): return "Reason" |