Commit cf0d71e1 authored by James Lopez's avatar James Lopez

add ldap group links migrations

parent 3bd42168
class DropCnConstraintToLdapGroupLinks < ActiveRecord::Migration
DOWNTIME = false
def change
change_column_null :ldap_group_links, :cn, true
end
end
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddFilterToLdapGroupLinks < ActiveRecord::Migration
def change
add_column(:ldap_group_links, :filter, :string)
end
end
...@@ -941,12 +941,13 @@ ActiveRecord::Schema.define(version: 20170918223303) do ...@@ -941,12 +941,13 @@ ActiveRecord::Schema.define(version: 20170918223303) do
add_index "labels", ["type", "project_id"], name: "index_labels_on_type_and_project_id", using: :btree add_index "labels", ["type", "project_id"], name: "index_labels_on_type_and_project_id", using: :btree
create_table "ldap_group_links", force: :cascade do |t| create_table "ldap_group_links", force: :cascade do |t|
t.string "cn", null: false t.string "cn"
t.integer "group_access", null: false t.integer "group_access", null: false
t.integer "group_id", null: false t.integer "group_id", null: false
t.datetime "created_at" t.datetime "created_at"
t.datetime "updated_at" t.datetime "updated_at"
t.string "provider" t.string "provider"
t.string "filter"
end end
create_table "lfs_objects", force: :cascade do |t| create_table "lfs_objects", force: :cascade do |t|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment