Your message dated Wed, 18 Dec 2013 12:37:51 +0000
with message-id <[email protected]>
and subject line Bug#732491: Removed package(s) from unstable
has caused the Debian Bug report #522819,
regarding rake: migrations fail to run against postgresql
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
522819: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522819
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rake
Version: 0.8.4-1
Severity: normal

Running rake db:migrate the first time, all tables are created ok.

Running rake after that results in:
rupa@shakti:~/src/camera/camera$ rake db:migrate
(in /home/rupa/src/camera/camera)
rake aborted!
PGError: ERROR:  relation "schema_migrations" already exists
: CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)

The problem is in the SQL that is generated to see if the table exists:

2009-04-06 12:24:33 CDT LOG:  duration: 2.893 ms  statement:           
SELECT tablename
   FROM pg_tables
   WHERE schemaname IN (E'"$user"',E'public')

there will never be a schemaname $user.  The driver gets the schemaname list
from the SQL: SHOW search_path and then feeds that into the above select.

The $user needs to be expanded to the currently logged in user.


This problem prevents migrations from actually working against postgres.

Oh, this won't fail if the tables are created in the public schema.  Only 
if they are created in the user's schema and one is running with the default
search_path will there be a problem.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (300, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages rake depends on:
ii  ruby                          4.2        An interpreter of object-oriented 

Versions of packages rake recommends:
ii  zip                           2.32-1     Archiver for .zip files

rake suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 2.3.14-4+rm

Dear submitter,

as the package ruby-rails-2.3 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/732491

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)

--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to