summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-03-12 18:12:38 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-03-16 13:35:26 +0100
commit3a8207a96120dbb23e9feddd372e720ef0884378 (patch)
tree1b887f027fbd0fd25d46951a1e75f5805c5852f3 /db
parentb1c7ee37ea85dfe4a4fa99342dc09d8ea436769e (diff)
downloadgitlab-ce-3a8207a96120dbb23e9feddd372e720ef0884378.tar.gz
Use bigserial for internal_ids table.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180305095250_create_internal_ids_table.rb2
-rw-r--r--db/schema.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180305095250_create_internal_ids_table.rb b/db/migrate/20180305095250_create_internal_ids_table.rb
index 19c1904bb43..d2e79a12c0a 100644
--- a/db/migrate/20180305095250_create_internal_ids_table.rb
+++ b/db/migrate/20180305095250_create_internal_ids_table.rb
@@ -6,7 +6,7 @@ class CreateInternalIdsTable < ActiveRecord::Migration
disable_ddl_transaction!
def up
- create_table :internal_ids do |t|
+ create_table :internal_ids, id: :bigserial do |t|
t.references :project
t.integer :usage, null: false
t.integer :last_value, null: false
diff --git a/db/schema.rb b/db/schema.rb
index 3785bf14d5c..aab8ad4753e 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -866,7 +866,7 @@ ActiveRecord::Schema.define(version: 20180309160427) do
add_index "identities", ["user_id"], name: "index_identities_on_user_id", using: :btree
- create_table "internal_ids", force: :cascade do |t|
+ create_table "internal_ids", id: :bigserial, force: :cascade do |t|
t.integer "project_id"
t.integer "usage", null: false
t.integer "last_value", null: false