1
0
Fork 0
forked from gitea/nas

Merge remote-tracking branch 'parent/main' into upstream-20240913

This commit is contained in:
KMY 2024-09-13 10:31:48 +09:00
commit fc9d27ff91
392 changed files with 3757 additions and 3233 deletions

View file

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddAttributionDomainsToAccounts < ActiveRecord::Migration[7.1]
def change
add_column :accounts, :attribution_domains, :string, array: true, default: []
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_08_28_123604) do
ActiveRecord::Schema[7.1].define(version: 2024_09_09_014637) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -206,6 +206,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_08_28_123604) do
t.boolean "remote_pending", default: false, null: false
t.integer "avatar_file_size"
t.integer "header_file_size"
t.string "attribution_domains", default: [], array: true
t.index "(((setweight(to_tsvector('simple'::regconfig, (display_name)::text), 'A'::\"char\") || setweight(to_tsvector('simple'::regconfig, (username)::text), 'B'::\"char\")) || setweight(to_tsvector('simple'::regconfig, (COALESCE(domain, ''::character varying))::text), 'C'::\"char\")))", name: "search_index", using: :gin
t.index "lower((username)::text), COALESCE(lower((domain)::text), ''::text)", name: "index_accounts_on_username_and_domain_lower", unique: true
t.index ["domain", "id"], name: "index_accounts_on_domain_and_id"