parent
575afa806d
commit
f89bb918f4
@ -0,0 +1,8 @@ |
||||
defmodule Explorer.Chain.SmartContract.ExternalLibrary do |
||||
use Ecto.Schema |
||||
|
||||
embedded_schema do |
||||
field :name |
||||
field :address_hash |
||||
end |
||||
end |
@ -0,0 +1,13 @@ |
||||
defmodule Explorer.Repo.Migrations.AddExternalLibrariesToSmartContracts do |
||||
use Ecto.Migration |
||||
|
||||
def change do |
||||
alter table(:smart_contracts) do |
||||
remove :external_libraries |
||||
end |
||||
|
||||
alter table(:smart_contracts) do |
||||
add :external_libraries, {:array, :map}, default: [] |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue