{"action":"created","issue":{"url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/825","repository_url":"https://api.github.com/repos/owen2345/camaleon-cms","labels_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/825/comments","events_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/825/events","html_url":"https://github.com/owen2345/camaleon-cms/issues/825","id":341698685,"node_id":"MDU6SXNzdWUzNDE2OTg2ODU=","number":825,"title":"Trying to install DuplicateMigrationNameError","user":{"login":"ecojob","id":41308974,"node_id":"MDQ6VXNlcjQxMzA4OTc0","avatar_url":"https://avatars2.githubusercontent.com/u/41308974?v=4","gravatar_id":"","url":"https://api.github.com/users/ecojob","html_url":"https://github.com/ecojob","followers_url":"https://api.github.com/users/ecojob/followers","following_url":"https://api.github.com/users/ecojob/following{/other_user}","gists_url":"https://api.github.com/users/ecojob/gists{/gist_id}","starred_url":"https://api.github.com/users/ecojob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecojob/subscriptions","organizations_url":"https://api.github.com/users/ecojob/orgs","repos_url":"https://api.github.com/users/ecojob/repos","events_url":"https://api.github.com/users/ecojob/events{/privacy}","received_events_url":"https://api.github.com/users/ecojob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-16T22:19:42Z","updated_at":"2018-07-16T22:23:27Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\nI am trying to install Camaleon on a new rails app.\r\n\r\nWhen I rake db:migrate, I am getting the following error: \r\n\r\nrake aborted!\r\nActiveRecord::DuplicateMigrationNameError: \r\n\r\nMultiple migrations have the name PostTableIntoUtf8.\r\n\r\nI did drop the table and create it again. \r\n\r\nI am still getting the same error. Any clue ? \r\n\r\nI did not touch the 20180716215842_post_table_into_utf8.camaleon_cms_engine.rb file\r\n\r\nShall I change something ? \r\n\r\nThank you for your help\r\n\r\n`# This migration comes from camaleon_cms_engine (originally 20150611161134)\r\nclass PostTableIntoUtf8 < CamaManager.migration_class\r\n  def change\r\n    if table_exists? CamaleonCms::User.table_name\r\n      add_column(CamaleonCms::User.table_name, :email, :string) unless column_exists?(CamaleonCms::User.table_name, :email)\r\n      add_column(CamaleonCms::User.table_name, :username, :string) unless column_exists?(CamaleonCms::User.table_name, :username)\r\n      add_column(CamaleonCms::User.table_name, :role, :string, default: 'client', index: true) unless column_exists?(CamaleonCms::User.table_name, :role)\r\n      add_column(CamaleonCms::User.table_name, :parent_id, :integer) unless column_exists?(CamaleonCms::User.table_name, :parent_id)\r\n      add_column(CamaleonCms::User.table_name, :site_id, :integer, index: true, default: -1) unless column_exists?(CamaleonCms::User.table_name, :site_id)\r\n      add_column(CamaleonCms::User.table_name, :auth_token, :string) unless column_exists?(CamaleonCms::User.table_name, :auth_token)\r\n    else\r\n      create_table CamaleonCms::User.table_name do |t|\r\n        t.string   \"username\", index: true\r\n        t.string   \"role\", default: \"client\", index: true\r\n        t.string   \"email\", index: true\r\n        t.string   \"slug\"\r\n        t.string   \"password_digest\"\r\n        t.string   \"auth_token\"\r\n        t.string   \"password_reset_token\"\r\n        t.integer  \"parent_id\"\r\n        t.datetime \"password_reset_sent_at\"\r\n        t.datetime \"last_login_at\"\r\n\r\n        # t.integer  \"site_id\",   default: -1, index: true\r\n        t.timestamps null: false\r\n        t.belongs_to :site, index: true, default: -1#, foreign_key: true\r\n      end\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}term_taxonomy\" do |t|\r\n      t.string   \"taxonomy\", index: true\r\n      t.text     \"description\", limit: 1073741823\r\n      t.integer  \"parent_id\", index: true\r\n      t.integer  \"count\"\r\n      t.string   \"name\"\r\n      t.string   \"slug\", index: true\r\n      t.integer  \"term_group\"\r\n      t.integer  \"term_order\", index: true\r\n      t.string   \"status\"\r\n\r\n      t.timestamps null: false\r\n      t.belongs_to :user, index: true#, foreign_key: true\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}posts\" do |t|\r\n      t.string   \"title\"\r\n      t.string   \"slug\", index: true\r\n      t.text     \"content\",          limit: 1073741823\r\n      t.text     \"content_filtered\", limit: 1073741823\r\n      t.string   \"status\", default: \"published\", index: true\r\n      t.integer  \"comment_count\", default: 0\r\n      t.datetime \"published_at\"\r\n      t.integer  \"post_parent\", index: true\r\n      t.string   \"visibility\", default: \"public\"\r\n      t.text     \"visibility_value\"\r\n      t.string   \"post_class\", default: \"Post\", index: true\r\n\r\n      t.timestamps null: false\r\n      t.belongs_to :user, index: true#, foreign_key: true\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}term_relationships\" do |t|\r\n      t.integer \"objectid\", index: true\r\n      t.integer \"term_order\", index: true\r\n      t.belongs_to :term_taxonomy, index: true\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}user_relationships\" do |t|\r\n      t.integer \"term_order\"\r\n      t.integer \"active\", default: 1\r\n\r\n      t.belongs_to :term_taxonomy, index: true\r\n      t.belongs_to :user, index: true\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}comments\" do |t|\r\n      t.string   \"author\"\r\n      t.string   \"author_email\"\r\n      t.string   \"author_url\"\r\n      t.string   \"author_IP\"\r\n      t.text     \"content\"\r\n      t.string   \"approved\", default: \"pending\", index: true\r\n      t.string   \"agent\"\r\n      t.string   \"typee\"\r\n      t.integer  \"comment_parent\", index: true\r\n      t.belongs_to :post, index: true#, foreign_key: true\r\n      t.belongs_to :user, index: true#, foreign_key: true\r\n      t.timestamps null: false\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}custom_fields\" do |t|\r\n      t.string  \"object_class\", index: true\r\n      t.string  \"name\"\r\n      t.string  \"slug\", index: true\r\n      t.integer  \"objectid\", index: true\r\n      t.integer \"parent_id\", index: true\r\n      t.integer \"field_order\"\r\n      t.integer \"count\", default: 0\r\n      t.boolean \"is_repeat\", default: false\r\n      t.text    \"description\"\r\n      t.string  \"status\"\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}custom_fields_relationships\" do |t|\r\n      t.integer \"objectid\", index: true\r\n      t.integer \"custom_field_id\", index: true\r\n      t.integer \"term_order\"\r\n      t.string  \"object_class\", index: true\r\n      t.text    \"value\", limit: 1073741823\r\n      t.string  \"custom_field_slug\", index: true\r\n    end\r\n\r\n    create_table \"#{PluginRoutes.static_system_info[\"db_prefix\"]}metas\" do |t|\r\n      t.string  \"key\", index: true\r\n      t.text    \"value\", limit: 1073741823\r\n      t.integer \"objectid\", index: true\r\n      t.string  \"object_class\", index: true\r\n    end\r\n\r\n    if ActiveRecord::Base.connection.adapter_name.downcase.include?(\"mysql\")\r\n      ActiveRecord::Base.connection.execute \"ALTER TABLE #{PluginRoutes.static_system_info[\"db_prefix\"]}posts CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;\" rescue nil\r\n      ActiveRecord::Base.connection.execute \"ALTER TABLE #{PluginRoutes.static_system_info[\"db_prefix\"]}custom_fields_relationships CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;\" rescue nil\r\n    end\r\n  end\r\nend` "},"comment":{"url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/comments/405400041","html_url":"https://github.com/owen2345/camaleon-cms/issues/825#issuecomment-405400041","issue_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/825","id":405400041,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTQwMDA0MQ==","user":{"login":"owen2345","id":1148415,"node_id":"MDQ6VXNlcjExNDg0MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1148415?v=4","gravatar_id":"","url":"https://api.github.com/users/owen2345","html_url":"https://github.com/owen2345","followers_url":"https://api.github.com/users/owen2345/followers","following_url":"https://api.github.com/users/owen2345/following{/other_user}","gists_url":"https://api.github.com/users/owen2345/gists{/gist_id}","starred_url":"https://api.github.com/users/owen2345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owen2345/subscriptions","organizations_url":"https://api.github.com/users/owen2345/orgs","repos_url":"https://api.github.com/users/owen2345/repos","events_url":"https://api.github.com/users/owen2345/events{/privacy}","received_events_url":"https://api.github.com/users/owen2345/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T22:23:27Z","updated_at":"2018-07-16T22:23:27Z","author_association":"OWNER","body":"Hi @ecojob ,\r\nSorry for the problem, but for now remove the duplicated migration files from your project/db/migrate/\r\nCheers!"}}
{"actor":{"display_login":"owen2345"}}