Mercurial > p > roundup > code
comparison roundup/backends/back_mysql.py @ 2425:e4f06fcbbc89 maint-0.7
argh! backwards compat
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 09 Jun 2004 07:04:06 +0000 |
| parents | fe722c32ce0c |
| children | 3fe516581aa3 |
comparison
equal
deleted
inserted
replaced
| 2423:d96652862f1d | 2425:e4f06fcbbc89 |
|---|---|
| 358 for index in self.cursor.fetchall(): | 358 for index in self.cursor.fetchall(): |
| 359 if index[2] == index_name: | 359 if index[2] == index_name: |
| 360 return 1 | 360 return 1 |
| 361 return 0 | 361 return 0 |
| 362 | 362 |
| 363 def create_class_table(self, spec, create_sequence=True): | 363 def create_class_table(self, spec, create_sequence=1): |
| 364 cols, mls = self.determine_columns(spec.properties.items()) | 364 cols, mls = self.determine_columns(spec.properties.items()) |
| 365 | 365 |
| 366 # add on our special columns | 366 # add on our special columns |
| 367 cols.append(('id', 'INTEGER PRIMARY KEY')) | 367 cols.append(('id', 'INTEGER PRIMARY KEY')) |
| 368 cols.append(('__retired__', 'INTEGER DEFAULT 0')) | 368 cols.append(('__retired__', 'INTEGER DEFAULT 0')) |
