feat: convert feature_flag to bigint [CW-2767] (#8350)
Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# auto_resolve_duration :integer
|
# auto_resolve_duration :integer
|
||||||
# custom_attributes :jsonb
|
# custom_attributes :jsonb
|
||||||
# domain :string(100)
|
# domain :string(100)
|
||||||
# feature_flags :integer default(0), not null
|
# feature_flags :bigint default(0), not null
|
||||||
# limits :jsonb
|
# limits :jsonb
|
||||||
# locale :integer default("en")
|
# locale :integer default("en")
|
||||||
# name :string not null
|
# name :string not null
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
class ChangeFeatureFlagsToBigintInAccounts < ActiveRecord::Migration[7.0]
|
||||||
|
def up
|
||||||
|
change_column :accounts, :feature_flags, :bigint
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
change_column :accounts, :feature_flags, :integer
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2023_10_13_072802) do
|
ActiveRecord::Schema[7.0].define(version: 2023_11_14_111614) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_stat_statements"
|
enable_extension "pg_stat_statements"
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
@@ -49,7 +49,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_13_072802) do
|
|||||||
t.integer "locale", default: 0
|
t.integer "locale", default: 0
|
||||||
t.string "domain", limit: 100
|
t.string "domain", limit: 100
|
||||||
t.string "support_email", limit: 100
|
t.string "support_email", limit: 100
|
||||||
t.integer "feature_flags", default: 0, null: false
|
t.bigint "feature_flags", default: 0, null: false
|
||||||
t.integer "auto_resolve_duration"
|
t.integer "auto_resolve_duration"
|
||||||
t.jsonb "limits", default: {}
|
t.jsonb "limits", default: {}
|
||||||
t.jsonb "custom_attributes", default: {}
|
t.jsonb "custom_attributes", default: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user