Skip to content

Commit 57b9e27

Browse files
author
Alexander Smishlajev
committed
use integer IDs in multilink tables
1 parent d9e80f3 commit 57b9e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/backends/rdbms_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.137 2004-10-14 22:27:59 richard Exp $
1+
# $Id: rdbms_common.py,v 1.138 2004-10-25 10:20:58 a1s Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -548,7 +548,7 @@ def create_multilink_table(self, spec, ml):
548548
given by the spec
549549
'''
550550
# create the table
551-
sql = 'create table %s_%s (linkid varchar(255), nodeid varchar(255))'%(
551+
sql = 'create table %s_%s (linkid INTEGER, nodeid INTEGER)'%(
552552
spec.classname, ml)
553553
self.sql(sql)
554554
self.create_multilink_table_indexes(spec, ml)

0 commit comments

Comments
 (0)