cartodb-4.42/db/migrate/20170704094757_add_render_timeouts_to_users.rb

16 lines
463 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
# The 0 value means: "apply default render timeouts" (defined by the tiler)
add_column :users, :user_render_timeout, :integer, default: 0, null: false
add_column :users, :database_render_timeout, :integer, default: 0, null: false
end,
Proc.new do
drop_column :users, :user_render_timeout
drop_column :users, :database_render_timeout
end
)