Skip to content

Commit 2fdb539

Browse files
committed
Set ltree column’s default value to ""(blank string)
1 parent b1d1153 commit 2fdb539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

priv/repo/migrations/20180625095801_create_catelogs.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule Dummy.Repo.Migrations.CreateCatelogs do
77
create table(:catelogs, primary_key: false) do
88
add :id, :uuid, primary_key: true
99
add :name, :string
10-
add :path, :ltree, null: false
10+
add :path, :ltree, null: false, default: ""
1111

1212
timestamps()
1313
end

0 commit comments

Comments
 (0)