cartodb-4.42/db/migrate/20190517114808_add_default_salt.rb

23 lines
427 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
alter_table(:users) do
set_column_default :salt, ''
end
alter_table(:user_creations) do
set_column_default :salt, ''
end
end,
Proc.new do
alter_table(:users) do
set_column_default :salt, nil
end
alter_table(:user_creations) do
set_column_default :salt, nil
end
end
)