_docker/drupal/drupal-filesystem/scripts/drupal_install_checker.rb
#
# This works-around a bug in the workspace module install in staging and production environments. We need to set the
# initial id of the row inserted into the workspace table to 1 from 9. In environments where this does not occur e.g
# drupal-dev, drupal-pull-request, this method is essentially a null-op
#
This works-around a bug in the workspace module install in staging and production environments. We need to set the
initial id of the row inserted into the workspace table to 1 from 9. In environments where this does not occur e.g
drupal-dev, drupal-pull-request, this method is essentially a null-op
This works - around a bug in the workspace module install in staging and production environments . We need to set the initial id of the row inserted into the workspace table to 1 from 9 . In environments where this does not occur e . g drupal - dev drupal - pull - request this method is essentially a null - op
def workaround_workspace_bug
    process_executor.exec!('mysql', ["--host=#{@opts['database']['host']}",
                                     "--port=#{@opts['database']['port']}",
                                     "--user=#{@opts['database']['username']}",
                                     "--password=#{@opts['database']['password']}",
                                     '--execute=update workspace set id=1 where id=9', "#{@opts['database']['name']}"])
  end
def workaround_workspace_bug process_executor . exec! ( 'mysql' , [ "--host=#{@opts['database']['host']}" , "--port=#{@opts['database']['port']}" , "--user=#{@opts['database']['username']}" , "--password=#{@opts['database']['password']}" , '--execute=update workspace set id=1 where id=9' , "#{@opts['database']['name']}" ] ) end
This works-around a bug in the workspace module install in staging and production environments.
This works - around a bug in the workspace module install in staging and production environments .