fukamachi / integral

[OBSOLETE] Use Mito instead.
https://github.com/fukamachi/mito
BSD 3-Clause "New" or "Revised" License
54 stars 3 forks source link

Too many unique keys can raise DB Error on migration #42

Open hipeta opened 9 years ago

hipeta commented 9 years ago

Here is an example.

(defclass table1 ()
  (...)
  (:metaclass integral:<dao-table>)
  (:unique-keys (too-long-long-long-long-long-long-column1 too-long-long-long-long-long-long-column2)))

DB Error: Identifier name 'too-long-long-long-long-long-long-column1_and_too-long-long-long-long-long-long-column2' is too long (Code: 1059)
   [Condition of type DBI.ERROR:<DBI-PROGRAMMING-ERROR>]

This is caused by src/migration.lisp at line 134. Can you fix this when you have a time?

Thanks.

rudolph-miller commented 9 years ago

Though we know this bug, thanks for your reporting.

I will fix it when I can spare time.