Hi @fireproofsocks ,
I quickly set up a new phoenix project from scratch using phx.new.
I simply added two migrations:
20221011044913_schema.exs
defmodule Migrations.Repo.Migrations.Schema do
use Ecto.Migration
def change do
execute("CREATE SCHEMA core")
end
end
20221011044917_table.exs
defmodule Migrations.Repo.Migrations.Table do
use Ecto.Migration
def change do
create table(:posts, prefix: "core") do
add(:title, :string, default: "Untitled")
add(:body, :text)
timestamps()
end
end
end
I did nothing else.
Then I ran:
mix ecto.create
mix ecto.migrate
Everything worked as expected:
Can you please show the full stacktrace for this error?
Can you please also share your Repo config?























