Skip to content

Commit c7c65ba

Browse files
author
Richard Jones
committed
slightly better fix
1 parent a99cf91 commit c7c65ba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Fixed:
8282
- handle capitalisation of class names in text hyperlinking (sf bug
8383
1101043)
8484
- quote full-text search text in URL generation
85+
- fixed problem migrating mysql databases
8586
- fix search_checkboxes macro (sf patch 1113828)
8687

8788

roundup/backends/back_mysql.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def add_new_columns_v2(self):
318318
for nodeid, journaldate, journaltag, action, params in \
319319
self.cursor.fetchall():
320320
#nodeid = int(nodeid)
321-
journaldate = str(date.Date(journaldate))
321+
journaldate = date.Date(journaldate)
322322
#params = eval(params)
323323
olddata.append((nodeid, journaldate, journaltag, action,
324324
params))
@@ -330,8 +330,9 @@ def add_new_columns_v2(self):
330330

331331
# re-create journal table
332332
self.create_journal_table(klass)
333+
dc = self.hyperdb_to_sql_value[hyperdb.Date]
333334
for nodeid, journaldate, journaltag, action, params in olddata:
334-
self.save_journal(cn, cols, nodeid, journaldate,
335+
self.save_journal(cn, cols, nodeid, dc(journaldate),
335336
journaltag, action, params)
336337

337338
# make sure the normal schema update code doesn't try to

0 commit comments

Comments
 (0)