sinatra-sequel icon indicating copy to clipboard operation
sinatra-sequel copied to clipboard

use table_exists? to detect if migration table should be created to avoid SQLite3 error

Open archiloque opened this issue 14 years ago • 1 comments

use table_exists? to detect if migration table should be created to avoid SQLite3::SQLException: index migrations_name_index already exists

archiloque avatar Nov 22 '11 20:11 archiloque

Any reason this is not getting merged?

On postgres the error looks like this: PG::Error: ERROR: relation "migrations_name_index" already exists: CREATE INDEX "migrations_name_index" ON "migrations" ("name")

m-o-e avatar May 17 '13 15:05 m-o-e