[Git][noosfero/noosfero][stable-1.10] Merge branch 'circle-index-constraint' into 'master'

Rodrigo Souto gitlab at mg.gitlab.com
Fri Nov 10 14:49:12 BRST 2017


Rodrigo Souto pushed to branch stable-1.10 at Noosfero / noosfero


Commits:
7b53304b by Rodrigo Souto at 2017-11-10T16:49:08+00:00
Merge branch 'circle-index-constraint' into 'master'

circles: fix index uniqueness constraint

See merge request noosfero/noosfero!1346

(cherry picked from commit d09637185d62310bd1e60354e74e5803bed3ec72)

b0613c45 circles: fix index uniqueness constraint
- - - - -


1 changed file:

- + db/migrate/20171106144524_fix_circle_index_constraint.rb


Changes:

=====================================
db/migrate/20171106144524_fix_circle_index_constraint.rb
=====================================
--- /dev/null
+++ b/db/migrate/20171106144524_fix_circle_index_constraint.rb
@@ -0,0 +1,6 @@
+class FixCircleIndexConstraint < ActiveRecord::Migration
+  def change
+    remove_index :circles, :name => "circles_composite_key_index"
+    add_index :circles, [:person_id, :name, :profile_type], :name => "circles_composite_key_index", :unique => true
+  end
+end



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/7b53304b5008161f5367dc7fbab19c6901a71474

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/7b53304b5008161f5367dc7fbab19c6901a71474
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20171110/e3325804/attachment.html>


More information about the Noosfero-dev mailing list