Skip to content

Commit 5cf65e9

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent f443211 commit 5cf65e9

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

TODO.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
This file has been re-purposed to contain specifically the items that need
22
doing before the next release:
33

4-
- have rdbms backends look up the journal for actor if it's not set
5-
- migrate rdbms backends to use typed columns
6-
- migrate to numeric ID values (fixes bug 817217)
7-
4+
- finish mysql version 1 -> version 2 migration code
85
- ensure index creation is triggered by the version 1->2 update
96
(and other upgrade tests)
7+
8+
Optionally:
9+
- have rdbms backends look up the journal for actor if it's not set
10+
- migrate to numeric ID values (fixes bug 817217)

roundup/backends/back_mysql.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ class Database(Database):
111111
mysql_backend = 'InnoDB'
112112
#mysql_backend = 'BDB'
113113

114+
hyperdb_to_sql_datatypes = {
115+
hyperdb.String : 'VARCHAR(255)',
116+
hyperdb.Date : 'DATETIME',
117+
hyperdb.Link : 'INTEGER',
118+
hyperdb.Interval : 'VARCHAR(255)',
119+
hyperdb.Password : 'VARCHAR(255)',
120+
hyperdb.Boolean : 'INTEGER',
121+
hyperdb.Number : 'REAL',
122+
}
123+
114124
hyperdb_to_sql_value = {
115125
hyperdb.String : str,
116126
# no fractional seconds for MySQL

0 commit comments

Comments
 (0)