Merge remote-tracking branch 'parent/main' into upstream-20250403
This commit is contained in:
commit
32f5604499
265 changed files with 6227 additions and 3383 deletions
21
db/migrate/20241205103523_create_fasp_providers.rb
Normal file
21
db/migrate/20241205103523_create_fasp_providers.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateFaspProviders < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :fasp_providers do |t|
|
||||
t.boolean :confirmed, null: false, default: false
|
||||
t.string :name, null: false
|
||||
t.string :base_url, null: false, index: { unique: true }
|
||||
t.string :sign_in_url
|
||||
t.string :remote_identifier, null: false
|
||||
t.string :provider_public_key_pem, null: false
|
||||
t.string :server_private_key_pem, null: false
|
||||
t.jsonb :capabilities, null: false, default: []
|
||||
t.jsonb :privacy_policy
|
||||
t.string :contact_email
|
||||
t.string :fediverse_account
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
13
db/migrate/20241206131513_create_fasp_debug_callbacks.rb
Normal file
13
db/migrate/20241206131513_create_fasp_debug_callbacks.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateFaspDebugCallbacks < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :fasp_debug_callbacks do |t|
|
||||
t.references :fasp_provider, null: false, foreign_key: true
|
||||
t.string :ip, null: false
|
||||
t.text :request_body, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
27
db/schema.rb
27
db/schema.rb
|
@ -610,6 +610,32 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_13_123400) do
|
|||
t.index ["uri"], name: "index_emoji_reactions_on_uri", unique: true
|
||||
end
|
||||
|
||||
create_table "fasp_debug_callbacks", force: :cascade do |t|
|
||||
t.bigint "fasp_provider_id", null: false
|
||||
t.string "ip", null: false
|
||||
t.text "request_body", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["fasp_provider_id"], name: "index_fasp_debug_callbacks_on_fasp_provider_id"
|
||||
end
|
||||
|
||||
create_table "fasp_providers", force: :cascade do |t|
|
||||
t.boolean "confirmed", default: false, null: false
|
||||
t.string "name", null: false
|
||||
t.string "base_url", null: false
|
||||
t.string "sign_in_url"
|
||||
t.string "remote_identifier", null: false
|
||||
t.string "provider_public_key_pem", null: false
|
||||
t.string "server_private_key_pem", null: false
|
||||
t.jsonb "capabilities", default: [], null: false
|
||||
t.jsonb "privacy_policy"
|
||||
t.string "contact_email"
|
||||
t.string "fediverse_account"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["base_url"], name: "index_fasp_providers_on_base_url", unique: true
|
||||
end
|
||||
|
||||
create_table "favourites", force: :cascade do |t|
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
|
@ -1680,6 +1706,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_13_123400) do
|
|||
add_foreign_key "emoji_reactions", "accounts", on_delete: :cascade
|
||||
add_foreign_key "emoji_reactions", "custom_emojis", on_delete: :cascade
|
||||
add_foreign_key "emoji_reactions", "statuses", on_delete: :cascade
|
||||
add_foreign_key "fasp_debug_callbacks", "fasp_providers"
|
||||
add_foreign_key "favourites", "accounts", name: "fk_5eb6c2b873", on_delete: :cascade
|
||||
add_foreign_key "favourites", "statuses", name: "fk_b0e856845e", on_delete: :cascade
|
||||
add_foreign_key "featured_tags", "accounts", on_delete: :cascade
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue