Skip to content

Commit 518d012

Browse files
author
Richard Jones
committed
Fix a couple more old instances of "type" instead of "ENGINE" for mysql backend.
1 parent 3b6af63 commit 518d012

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ Fixed:
6161
- update Xapian indexer to use current API
6262
- handle export and import of old trackers that have data attached to
6363
journal "create" events
64+
- fix a couple more old instances of "type" instead of "ENGINE" for mysql
65+
backend
6466

6567

6668
2007-02-15 1.3.3

roundup/backends/back_mysql.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_mysql.py,v 1.73 2007-09-28 15:26:10 jpend Exp $
1+
#$Id: back_mysql.py,v 1.74 2007-10-26 01:34:43 richard Exp $
22
#
33
# Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <[email protected]>
44
#
@@ -13,7 +13,7 @@
1313
How to implement AUTO_INCREMENT:
1414
1515
mysql> create table foo (num integer auto_increment primary key, name
16-
varchar(255)) AUTO_INCREMENT=1 type=InnoDB;
16+
varchar(255)) AUTO_INCREMENT=1 ENGINE=InnoDB;
1717
1818
ql> insert into foo (name) values ('foo5');
1919
Query OK, 1 row affected (0.00 sec)
@@ -392,7 +392,7 @@ def create_class_table(self, spec, create_sequence=1):
392392

393393
# create the base table
394394
scols = ','.join(['%s %s'%x for x in cols])
395-
sql = 'create table _%s (%s) type=%s'%(spec.classname, scols,
395+
sql = 'create table _%s (%s) ENGINE=%s'%(spec.classname, scols,
396396
self.mysql_backend)
397397
self.sql(sql)
398398

@@ -453,7 +453,7 @@ def create_journal_table(self, spec):
453453
for x in 'nodeid date tag action params'.split()])
454454
sql = '''create table %s__journal (
455455
nodeid integer, date datetime, tag varchar(255),
456-
action varchar(255), params text) type=%s'''%(
456+
action varchar(255), params text) ENGINE=%s'''%(
457457
spec.classname, self.mysql_backend)
458458
self.sql(sql)
459459
self.create_journal_table_indexes(spec)

0 commit comments

Comments
 (0)