Code

Ticket #10465: patch_bcfg2_reports_oracle_10465_1.txt

File patch_bcfg2_reports_oracle_10465_1.txt, 870 bytes (added by palcubilla, 5 years ago)

patch for the problem.

Line 
1Index: src/lib/Server/Reports/reports/models_new.py
2===================================================================
3--- src/lib/Server/Reports/reports/models_new.py        (revision 5078)
4+++ src/lib/Server/Reports/reports/models_new.py        (working copy)
5@@ -109,7 +109,7 @@
6 class Interaction(models.Model):
7     '''Models each reconfiguration operation interaction between client and server'''
8     client = models.ForeignKey(Client, related_name="interactions",)
9-    timestamp = models.DateTimeField()#Timestamp for this record
10+    timestamp = models.DateTimeField(db_column="timestamp_col")#Timestamp for this record
11     state = models.CharField(max_length=32)#good/bad/modified/etc
12     repo_rev_code = models.CharField(max_length=64)#repo revision at time of interaction
13     client_version = models.CharField(max_length=32)#Client Version