0
0
Fork 0

Add missing primary keys to accounts_tags and statuses_tags (#25210)

This commit is contained in:
Claire 2023-06-01 09:49:06 +02:00 committed by GitHub
parent f84037ae2b
commit fe84f7e323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 5 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2023_05_24_194155) do
ActiveRecord::Schema.define(version: 2023_05_31_154811) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -194,11 +194,10 @@ ActiveRecord::Schema.define(version: 2023_05_24_194155) do
t.index ["url"], name: "index_accounts_on_url", opclass: :text_pattern_ops, where: "(url IS NOT NULL)"
end
create_table "accounts_tags", id: false, force: :cascade do |t|
create_table "accounts_tags", primary_key: ["tag_id", "account_id"], force: :cascade do |t|
t.bigint "account_id", null: false
t.bigint "tag_id", null: false
t.index ["account_id", "tag_id"], name: "index_accounts_tags_on_account_id_and_tag_id"
t.index ["tag_id", "account_id"], name: "index_accounts_tags_on_tag_id_and_account_id", unique: true
end
create_table "admin_action_logs", force: :cascade do |t|
@ -979,11 +978,10 @@ ActiveRecord::Schema.define(version: 2023_05_24_194155) do
t.index ["uri"], name: "index_statuses_on_uri", unique: true, opclass: :text_pattern_ops, where: "(uri IS NOT NULL)"
end
create_table "statuses_tags", id: false, force: :cascade do |t|
create_table "statuses_tags", primary_key: ["tag_id", "status_id"], force: :cascade do |t|
t.bigint "status_id", null: false
t.bigint "tag_id", null: false
t.index ["status_id"], name: "index_statuses_tags_on_status_id"
t.index ["tag_id", "status_id"], name: "index_statuses_tags_on_tag_id_and_status_id", unique: true
end
create_table "system_keys", force: :cascade do |t|