summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-13 10:35:16 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-13 10:35:16 -0800
commitbb1f8b1d8be3d2cfd4467ff78bff875498e1b0e2 (patch)
tree53a133b27d59dd6ec4f7e52a347c68ddf914ea21 /db
parent9ce7492e58d3a90cfd9a07be6ba5b0f4fafe7bc8 (diff)
parentef933a4a962e4ab12c448241ad500e229a569f21 (diff)
downloadgitlab-ce-bb1f8b1d8be3d2cfd4467ff78bff875498e1b0e2.tar.gz
Merge branch 'github_importer'
Conflicts: app/helpers/projects_helper.rb
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20141223135007_add_import_data_to_project_table.rb8
-rw-r--r--db/schema.rb5
2 files changed, 12 insertions, 1 deletions
diff --git a/db/migrate/20141223135007_add_import_data_to_project_table.rb b/db/migrate/20141223135007_add_import_data_to_project_table.rb
new file mode 100644
index 00000000000..5db78f94cc9
--- /dev/null
+++ b/db/migrate/20141223135007_add_import_data_to_project_table.rb
@@ -0,0 +1,8 @@
+class AddImportDataToProjectTable < ActiveRecord::Migration
+ def change
+ add_column :projects, :import_type, :string
+ add_column :projects, :import_source, :string
+
+ add_column :users, :github_access_token, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 6cdff168742..f3c7a768788 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -324,6 +324,8 @@ ActiveRecord::Schema.define(version: 20150108073740) do
t.string "import_status"
t.float "repository_size", default: 0.0
t.integer "star_count", default: 0, null: false
+ t.string "import_type"
+ t.string "import_source"
end
add_index "projects", ["creator_id"], name: "index_projects_on_creator_id", using: :btree
@@ -421,6 +423,7 @@ ActiveRecord::Schema.define(version: 20150108073740) do
t.integer "notification_level", default: 1, null: false
t.datetime "password_expires_at"
t.integer "created_by_id"
+ t.datetime "last_credential_check_at"
t.string "avatar"
t.string "confirmation_token"
t.datetime "confirmed_at"
@@ -428,7 +431,7 @@ ActiveRecord::Schema.define(version: 20150108073740) do
t.string "unconfirmed_email"
t.boolean "hide_no_ssh_key", default: false
t.string "website_url", default: "", null: false
- t.datetime "last_credential_check_at"
+ t.string "github_access_token"
end
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree