noosfero | 2 new commits pushed to repository

Antonio Terceiro gitlab at gitlab.com
Tue Jan 27 16:54:26 BRST 2015


Antonio Terceiro pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>

Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/cbf7f84798ef72a28d7365edbec8d7d90327ecc6">cbf7f847</a> by Braulio Bhavamitra
external_feed: Change column type to allow big addresses

- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/f7c05bdf185326ba3ff047c20a00a06233d3d4c8">f7c05bdf</a> by Antonio Terceiro
Merge branch 'allow-external-feed-big-addresses' into 'master'

Allow external feed with big addresses

Fix:
  PG::StringDataRightTruncation: ERRO:  valor é muito longo para tipo character varying(255)
: UPDATE "external_feeds" SET "enabled" = 't', "fetched_at" = NULL, "address" = 'http://www.mncr.org.br/search_rss?advanced_search=True&SearchableText=&Subject_usage%3Aignore_empty=operator%3Aand&pt_toggle=%23&portal_type%3Alist=Document&portal_type%3Alist=Event&portal_type%3Alist=File&portal_type%3Alist=Google+Video&portal_type%3Alist=News+Item&created%3Alist%3Adate=1970%2F02%2F01&created_usage=range%3Amin&Creator=&sort_on=created&b_size%3Aint=30&submit=Buscar', "updated_at" = '2015-01-05 12:15:29.155544' WHERE "external_feeds"."id" = 993
  activerecord (3.2.21) lib/active_record/connection_adapters/postgresql_adapter.rb:1163:in `async_exec'

See merge request !429

- - - - -


Changes:

=====================================
db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb
=====================================
--- /dev/null
+++ b/db/migrate/20150122165042_change_address_type_to_text_in_external_feed.rb
@@ -0,0 +1,9 @@
+class ChangeAddressTypeToTextInExternalFeed < ActiveRecord::Migration
+  def up
+    change_column :external_feeds, :address, :text
+  end
+
+  def down
+    change_column :external_feeds, :address, :string
+  end
+end

=====================================
db/schema.rb
=====================================
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -316,7 +316,7 @@ ActiveRecord::Schema.define(:version => 20150113131617) do
   create_table "external_feeds", :force => true do |t|
     t.string   "feed_title"
     t.datetime "fetched_at"
-    t.string   "address"
+    t.text     "address"
     t.integer  "blog_id",                         :null => false
     t.boolean  "enabled",       :default => true, :null => false
     t.boolean  "only_once",     :default => true, :null => false

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150127/2a467e29/attachment.html>


More information about the Noosfero-dev mailing list