Skip to content

Commit 5f95dd3

Browse files
author
Richard Jones
committed
slightly better fix
1 parent b12c93c commit 5f95dd3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES.txt

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

8687

roundup/backends/back_mysql.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_mysql.py,v 1.53 2005-01-08 11:25:22 jlgijsbers Exp $
1+
#$Id: back_mysql.py,v 1.54 2005-02-13 21:15:04 richard Exp $
22
#
33
# Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <[email protected]>
44
#
@@ -319,7 +319,7 @@ def add_new_columns_v2(self):
319319
for nodeid, journaldate, journaltag, action, params in \
320320
self.cursor.fetchall():
321321
#nodeid = int(nodeid)
322-
journaldate = str(date.Date(journaldate))
322+
journaldate = date.Date(journaldate)
323323
#params = eval(params)
324324
olddata.append((nodeid, journaldate, journaltag, action,
325325
params))
@@ -331,8 +331,9 @@ def add_new_columns_v2(self):
331331

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

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

0 commit comments

Comments
 (0)