1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

chore: upgrade rails to 7.0 and other dependencies

هذا الالتزام موجود في:
Adam Cooke
2024-02-23 14:24:17 +00:00
ملتزم من قبل Adam Cooke
الأصل cfc1c9b73e
التزام ecd09a2445
27 ملفات معدلة مع 439 إضافات و250 حذوفات

عرض الملف

@@ -0,0 +1,10 @@
# frozen_string_literal: true
# This migration comes from authie (originally 20220502180100)
class AddTwoFactorRequiredToSessions < ActiveRecord::Migration[6.1]
def change
add_column :authie_sessions, :skip_two_factor, :boolean, default: false
end
end

عرض الملف

@@ -0,0 +1,12 @@
# frozen_string_literal: true
# This migration comes from authie (originally 20230627165500)
class AddCountriesToAuthieSessions < ActiveRecord::Migration[6.1]
def change
add_column :authie_sessions, :login_ip_country, :string
add_column :authie_sessions, :two_factored_ip_country, :string
add_column :authie_sessions, :last_activity_ip_country, :string
end
end

عرض الملف

@@ -10,23 +10,22 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2024_02_14_132253) do
ActiveRecord::Schema[7.0].define(version: 2024_02_23_141501) do
create_table "additional_route_endpoints", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.integer "route_id"
t.string "endpoint_type"
t.integer "endpoint_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
create_table "address_endpoints", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.integer "server_id"
t.string "uuid"
t.string "address"
t.datetime "last_used_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "last_used_at", precision: nil
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
create_table "authie_sessions", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
@@ -35,23 +34,27 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.integer "user_id"
t.boolean "active", default: true
t.text "data"
t.datetime "expires_at"
t.datetime "login_at"
t.datetime "expires_at", precision: nil
t.datetime "login_at", precision: nil
t.string "login_ip"
t.datetime "last_activity_at"
t.datetime "last_activity_at", precision: nil
t.string "last_activity_ip"
t.string "last_activity_path"
t.string "user_agent"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.string "user_type"
t.integer "parent_id"
t.datetime "two_factored_at"
t.datetime "two_factored_at", precision: nil
t.string "two_factored_ip"
t.integer "requests", default: 0
t.datetime "password_seen_at"
t.datetime "password_seen_at", precision: nil
t.string "token_hash"
t.string "host"
t.boolean "skip_two_factor", default: false
t.string "login_ip_country"
t.string "two_factored_ip_country"
t.string "last_activity_ip_country"
t.index ["browser_id"], name: "index_authie_sessions_on_browser_id", length: 8
t.index ["token"], name: "index_authie_sessions_on_token", length: 8
t.index ["token_hash"], name: "index_authie_sessions_on_token_hash", length: 8
@@ -64,9 +67,9 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "type"
t.string "name"
t.text "options"
t.datetime "last_used_at", precision: 6
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "last_used_at"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "hold", default: false
t.string "uuid"
end
@@ -77,11 +80,11 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "name"
t.string "verification_token"
t.string "verification_method"
t.datetime "verified_at"
t.datetime "verified_at", precision: nil
t.text "dkim_private_key"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "dns_checked_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "dns_checked_at"
t.string "spf_status"
t.string "spf_error"
t.string "dkim_status"
@@ -109,10 +112,10 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "format"
t.boolean "strip_replies", default: false
t.text "error"
t.datetime "disabled_until", precision: 6
t.datetime "last_used_at", precision: 6
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "disabled_until"
t.datetime "last_used_at"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "include_attachments", default: true
t.integer "timeout"
end
@@ -121,8 +124,8 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.integer "ip_pool_id"
t.string "ipv4"
t.string "ipv6"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.string "hostname"
t.integer "priority"
end
@@ -134,15 +137,15 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.integer "ip_pool_id"
t.text "from_text"
t.text "to_text"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
create_table "ip_pools", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "name"
t.string "uuid"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "default", default: false
t.index ["uuid"], name: "index_ip_pools_on_uuid", length: 8
end
@@ -150,14 +153,14 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
create_table "organization_ip_pools", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.integer "organization_id"
t.integer "ip_pool_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
create_table "organization_users", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.integer "organization_id"
t.integer "user_id"
t.datetime "created_at", precision: 6
t.datetime "created_at"
t.boolean "admin", default: false
t.boolean "all_servers", default: true
t.string "user_type"
@@ -168,12 +171,12 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "name"
t.string "permalink"
t.string "time_zone"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.integer "ip_pool_id"
t.integer "owner_id"
t.datetime "deleted_at", precision: 6
t.datetime "suspended_at", precision: 6
t.datetime "deleted_at"
t.datetime "suspended_at"
t.string "suspension_reason"
t.index ["permalink"], name: "index_organizations_on_permalink", length: 8
t.index ["uuid"], name: "index_organizations_on_uuid", length: 8
@@ -184,10 +187,10 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.integer "message_id"
t.string "domain"
t.string "locked_by"
t.datetime "locked_at", precision: 6
t.datetime "retry_after"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "locked_at"
t.datetime "retry_after", precision: nil
t.datetime "created_at"
t.datetime "updated_at"
t.integer "ip_address_id"
t.integer "attempts", default: 0
t.integer "route_id"
@@ -206,8 +209,8 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "endpoint_type"
t.string "name"
t.string "spam_mode"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.string "token"
t.string "mode"
t.index ["token"], name: "index_routes_on_token", length: 6
@@ -215,7 +218,7 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
create_table "scheduled_tasks", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "name"
t.datetime "next_run_after"
t.datetime "next_run_after", precision: nil
t.index ["name"], name: "index_scheduled_tasks_on_name", unique: true
end
@@ -225,24 +228,24 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "name"
t.string "mode"
t.integer "ip_pool_id"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.string "permalink"
t.integer "send_limit"
t.datetime "deleted_at", precision: 6
t.datetime "deleted_at"
t.integer "message_retention_days"
t.integer "raw_message_retention_days"
t.integer "raw_message_retention_size"
t.boolean "allow_sender", default: false
t.string "token"
t.datetime "send_limit_approaching_at", precision: 6
t.datetime "send_limit_approaching_notified_at", precision: 6
t.datetime "send_limit_exceeded_at", precision: 6
t.datetime "send_limit_exceeded_notified_at", precision: 6
t.datetime "send_limit_approaching_at"
t.datetime "send_limit_approaching_notified_at"
t.datetime "send_limit_exceeded_at"
t.datetime "send_limit_exceeded_notified_at"
t.decimal "spam_threshold", precision: 8, scale: 2
t.decimal "spam_failure_threshold", precision: 8, scale: 2
t.string "postmaster_address"
t.datetime "suspended_at", precision: 6
t.datetime "suspended_at"
t.decimal "outbound_spam_threshold", precision: 8, scale: 2
t.text "domains_not_to_click_track"
t.string "suspension_reason"
@@ -262,10 +265,10 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "ssl_mode"
t.integer "port"
t.text "error"
t.datetime "disabled_until", precision: 6
t.datetime "last_used_at", precision: 6
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "disabled_until"
t.datetime "last_used_at"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "statistics", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
@@ -279,12 +282,12 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.text "certificate"
t.text "intermediaries"
t.text "key"
t.datetime "expires_at"
t.datetime "renew_after"
t.datetime "expires_at", precision: nil
t.datetime "renew_after", precision: nil
t.string "verification_path"
t.string "verification_string"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.index ["domain"], name: "index_track_certificates_on_domain", length: 8
end
@@ -293,11 +296,11 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.integer "server_id"
t.integer "domain_id"
t.string "name"
t.datetime "dns_checked_at"
t.datetime "dns_checked_at", precision: nil
t.string "dns_status"
t.string "dns_error"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.boolean "ssl_enabled", default: true
t.boolean "track_clicks", default: true
t.boolean "track_loads", default: true
@@ -307,9 +310,9 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
create_table "user_invites", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "uuid"
t.string "email_address"
t.datetime "expires_at", precision: 6
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "expires_at"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["uuid"], name: "index_user_invites_on_uuid", length: 12
end
@@ -321,11 +324,11 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "password_digest"
t.string "time_zone"
t.string "email_verification_token"
t.datetime "email_verified_at"
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "email_verified_at", precision: nil
t.datetime "created_at"
t.datetime "updated_at"
t.string "password_reset_token"
t.datetime "password_reset_token_valid_until"
t.datetime "password_reset_token_valid_until", precision: nil
t.boolean "admin", default: false
t.index ["email_address"], name: "index_users_on_email_address", length: 8
t.index ["uuid"], name: "index_users_on_uuid", length: 8
@@ -334,7 +337,7 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
create_table "webhook_events", id: :integer, charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.integer "webhook_id"
t.string "event"
t.datetime "created_at", precision: 6
t.datetime "created_at"
t.index ["webhook_id"], name: "index_webhook_events_on_webhook_id"
end
@@ -346,11 +349,11 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "uuid"
t.text "payload"
t.integer "attempts", default: 0
t.datetime "retry_after", precision: 6
t.datetime "retry_after"
t.text "error"
t.datetime "created_at", precision: 6
t.datetime "created_at"
t.string "locked_by"
t.datetime "locked_at"
t.datetime "locked_at", precision: nil
t.index ["locked_by"], name: "index_webhook_requests_on_locked_by"
end
@@ -359,19 +362,19 @@ ActiveRecord::Schema.define(version: 2024_02_14_132253) do
t.string "uuid"
t.string "name"
t.string "url"
t.datetime "last_used_at"
t.datetime "last_used_at", precision: nil
t.boolean "all_events", default: false
t.boolean "enabled", default: true
t.boolean "sign", default: true
t.datetime "created_at", precision: 6
t.datetime "updated_at", precision: 6
t.datetime "created_at"
t.datetime "updated_at"
t.index ["server_id"], name: "index_webhooks_on_server_id"
end
create_table "worker_roles", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "role"
t.string "worker"
t.datetime "acquired_at"
t.datetime "acquired_at", precision: nil
t.index ["role"], name: "index_worker_roles_on_role", unique: true
end