Skip to content

Support setting url in sql_migrate ressource  #52

@Exchizz

Description

@Exchizz

Hi,

Great provider ! I'm really missing to be able to specify the url in the ressource.
Basically I want to be able to do something like this:

locals {
  data = {
      "DB_A" = {
        "url" = "sql url goes here"
         "up_script" = "a/b/up.sql"
         "down_script" = "a/b/down.sql"
       }
      "DB_B" = {
        "url" = "sql url goes here"
         "up_script" = "a/b/up.sql"
         "down_script" = "a/b/down.sql"
       }
  }
}
resource "sql_migrate" "schema" {
  for_each = local.data
  url = each.value.url
  migration {
    up   = each.value.sql_up 
    down = each.value.sql_down
 }
}

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions