"lib/desert/plugin_templates/edge/action_view.rb", to lib/desert/plugin_templates/2.2.0/action_view.rb"Any ideas?
---------- Forwarded message ----------To: Michael Dalessio <mi...@pivotallabs.com>
From: Joe Moore <j...@pivotallabs.com>
Date: Mon, Aug 17, 2009 at 1:51 PM
Subject: Re: Desert & Postgresql
Cc: Jeff Dean <jd...@pivotallabs.com>, Chad Woolley <ch...@pivotallabs.com>, fl...@pivotallabs.com
Yes, I found the plugin-migration bug when upgrading LikeMe from Rails 2.2.2 to 2.3.2. I forked Desert (http://github.com/joemoore/desert/tree/master) and have a fix.-- JoeOn Mon, Aug 17, 2009 at 1:22 PM, Michael Dalessio <mi...@pivotallabs.com> wrote:
Casebook had a problem with plugin schema tables when we upgraded to 2.3.2. The workaround was to re-run db:migrate, and the second time through, things magically worked. Srsly.
On Mon, Aug 17, 2009 at 10:55 AM, Jeff Dean <jd...@pivotallabs.com> wrote:
It doesn't look like a postgres bug - it looks like desert isn't properly creating the plugin schema tables. I'm not sure how any desert migrations are working for him if these tables don't exist.
Great! Send a pull request and we'll try to get it done.-- JoeOn Thu, Aug 20, 2009 at 12:58 PM, Andrei Erdoss <erd...@gmail.com> wrote:
Ok, I spent some time on this and I found the fix. You can see it here: http://github.com/cauta/desert/tree/master
It would be great to get this into the official repo.
Thanks,On Thu, Aug 20, 2009 at 10:30 PM, Andrei Erdoss <erd...@gmail.com> wrote:
Date: Thu, Aug 20, 2009 at 10:29 PM
Subject: Re: Desert & PostgresqlTo: pivotallab...@googlegroups.com
Joe, I created a gem from your repo but I'm getting a different error in the logs:
PGError: ERROR: syntax error at or near "NOT"
LINE 1: CREATE TABLE IF NOT EXISTS plugin_schema_migrations (plugin_...
^
: CREATE TABLE IF NOT EXISTS plugin_schema_migrations (plugin_name character varying(255), version character varying(255))
This error is because Postgresql doesn't have this syntax. Is there a workaround?
Also when building the gem I had to change in the gemspec:"lib/desert/plugin_templates/edge/action_view.rb", to lib/desert/plugin_templates/2.2.0/action_view.rb"Any ideas?
Thanks,
plugins_and_versions = select_all("SELECT plugin_name, version from #{Desert::PluginMigrations::Migrator.schema_info_table_name}")
plugins_and_versions = select_all("SELECT plugin_name, version from #{smt}")