public String build() {
    checkState(!primaryKey.isEmpty(), "Primary key is missing");
    return format("ALTER TABLE %s ADD CONSTRAINT %s%s PRIMARY KEY (%s)", tableName, PRIMARY_KEY_PREFIX, tableName,
      String.join(",", this.primaryKey));
  }
@Test
  public void generate() {
    String sql = new AddPrimaryKeyBuilder(TABLE_NAME, "id").build();

    assertThat(sql).isEqualTo("ALTER TABLE issues ADD CONSTRAINT pk_issues PRIMARY KEY (id)");
  }