mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Add ID/URI to collection items (#37842)
This commit is contained in:
7
db/migrate/20260212113020_add_uri_to_collection_items.rb
Normal file
7
db/migrate/20260212113020_add_uri_to_collection_items.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddUriToCollectionItems < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :collection_items, :uri, :string
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2026_02_11_132603) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2026_02_12_113020) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
@@ -365,6 +365,7 @@ ActiveRecord::Schema[8.0].define(version: 2026_02_11_132603) do
|
||||
t.integer "state", default: 0, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "uri"
|
||||
t.index ["account_id"], name: "index_collection_items_on_account_id"
|
||||
t.index ["approval_uri"], name: "index_collection_items_on_approval_uri", unique: true, where: "(approval_uri IS NOT NULL)"
|
||||
t.index ["collection_id"], name: "index_collection_items_on_collection_id"
|
||||
|
||||
Reference in New Issue
Block a user