Add support for standard webpush (#33528)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
ee4edbb94f
commit
4a2813158d
12 changed files with 167 additions and 46 deletions
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddStandardToPushSubscription < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :web_push_subscriptions, :standard, :boolean, null: false, default: false
|
||||
end
|
||||
end
|
|
@ -10,9 +10,9 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_12_16_224825) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_01_08_111200) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
create_table "account_aliases", force: :cascade do |t|
|
||||
t.bigint "account_id", null: false
|
||||
|
@ -1202,6 +1202,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_12_16_224825) do
|
|||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.bigint "access_token_id"
|
||||
t.bigint "user_id"
|
||||
t.boolean "standard", default: false, null: false
|
||||
t.index ["access_token_id"], name: "index_web_push_subscriptions_on_access_token_id", where: "(access_token_id IS NOT NULL)"
|
||||
t.index ["user_id"], name: "index_web_push_subscriptions_on_user_id"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue