This project is archived and is in readonly mode.
Dumping of non-standard primary keys doesn't work with SQLite3 adapter
Reported by Hongli Lai | July 5th, 2009 @ 09:05 AM | in 2.x
AR::SchemaDumper doesn't correctly detect SQLite3 primary keys. This patch for 2.3 fixes the problem. It also fixes the unit tests: schema_dumper_test.rb assumed that only MySQLAdapter supports non-standard primary key dumping, but in fact PostgreSQLAdapter also supports it, and now SQlite3Adapter does too.
Comments and changes to this ticket
-
Repository July 8th, 2009 @ 12:17 AM
- State changed from new to resolved
(from [187d90f7529e02c3c863e6b68b45d8e34f315140]) Add support for dumping non-standard primary keys when using the SQLite3 adapter. Fix unit tests so that this feature is tested for all adapters. [#2868 state:resolved]
Signed-off-by: Yehuda Katz wycats@yehuda-katzs-macbookpro41.local
http://github.com/rails/rails/commit/187d90f7529e02c3c863e6b68b45d8...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 2879 auto_increment on create_table option is not included on schema.rb This is a duplicate of #2868.
- 2868 Dumping of non-standard primary keys doesn't work with SQLite3 adapter (from [187d90f7529e02c3c863e6b68b45d8e34f315140]) Add sup...