Skip to content

Morf requires RELOAD privileges on MySQL which are generally not available in hosted environments #72

Description

@badgerwithagun

https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html#priv_reload

Morf relies on this in MySqlDialect:

  @Override
  public Collection<String> dropStatements(Table table) {
    return Arrays.asList(
      "FLUSH TABLES " + table.getName(),
      "DROP TABLE " + table.getName());
  }

Presumably this is for cluster safety, but it needs to be possible to disable it in environments where the application doesn't own the database, which applies to any shared hosted environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions