2015-02-18 16:51:25 +08:00
|
|
|
ORGANIZATION_NAME="example"
|
|
|
|
USERNAME="admin4example"
|
2019-08-09 09:01:09 +08:00
|
|
|
EMAIL="admin@contoso.com"
|
2015-05-16 05:27:12 +08:00
|
|
|
PASSWORD="pass1234"
|
2015-02-18 16:51:25 +08:00
|
|
|
|
2018-06-22 21:20:16 +08:00
|
|
|
bundle exec rake cartodb:db:create_user EMAIL="${EMAIL}" PASSWORD="${PASSWORD}" SUBDOMAIN="${USERNAME}"
|
|
|
|
bundle exec rake cartodb:db:set_unlimited_table_quota["${USERNAME}"]
|
|
|
|
bundle exec rake cartodb:db:create_new_organization_with_owner ORGANIZATION_NAME="${ORGANIZATION_NAME}" USERNAME="${USERNAME}" ORGANIZATION_SEATS=100 ORGANIZATION_QUOTA=102400 ORGANIZATION_DISPLAY_NAME="${ORGANIZATION_NAME}"
|
|
|
|
bundle exec rake cartodb:db:set_organization_quota[$ORGANIZATION_NAME,5000]
|
|
|
|
bundle exec rake cartodb:db:configure_geocoder_extension_for_organizations[$ORGANIZATION_NAME]
|
2017-08-02 04:07:30 +08:00
|
|
|
|
|
|
|
# Enable sync tables
|
|
|
|
echo "UPDATE users SET sync_tables_enabled=true WHERE username='${USERNAME}'" | psql -U postgres -t carto_db_development
|
2018-03-23 20:44:15 +08:00
|
|
|
# Enable private maps
|
|
|
|
echo "UPDATE users SET private_maps_enabled = 't'" | psql -U postgres -t carto_db_development
|
2018-07-04 17:10:16 +08:00
|
|
|
|
|
|
|
bundle exec rake cartodb:features:enable_feature_for_all_users["new_dashboard"]
|