public
Rubygem
Description: DataMapper - Core
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-core.git
Fix sqlite adapter so that it works with dm-migrations.

Closes 
http://wm.lighthouseapp.com/projects/4819/tickets/438-migrations-for-sqlite3-bro
ken-in-adapter
Thanks to Dave Langston for the patch.
paul (author)
Thu Jul 03 20:43:37 -0700 2008
commit  ed40a6f50dab4229405203a3a8ec92ae73cd90c0
tree    0c522b82b4f272301b84394710759072b2252961
parent  045d5cc50682e0c8db3df46a1882d36a7004e112
...
41
42
43
44
 
45
46
47
...
71
72
73
74
 
75
76
77
...
41
42
43
 
44
45
46
47
...
71
72
73
 
74
75
76
77
0
@@ -41,7 +41,7 @@ module DataMapper
0
         end
0
 
0
         module SQL
0
-          private
0
+#          private  ## This cannot be private for current migrations
0
 
0
           # TODO: move to dm-more/dm-migrations
0
           def supports_serial?
0
@@ -71,7 +71,7 @@ module DataMapper
0
           # TODO: move to dm-more/dm-migrations
0
           def property_schema_statement(schema)
0
             statement = super
0
-            statement << ' PRIMARY KEY AUTOINCREMENT' if supports_serial? && schema[:serial?]
0
+            statement << ' PRIMARY KEY AUTOINCREMENT' if supports_serial? && schema[:serial]
0
             statement
0
           end
0
 

Comments