Hi, i tried to create migration and tried to migrate:up but i got these errors
PS D:\codes\php\src\yii3\test_1> ./yii migrate:up
Creating migration history table "migration"...
-----------------------------------------------
2026-05-04 05:36:55.764300 [error][application] Yiisoft\Db\Exception\Exception: SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied for schema public at character 14
The SQL being executed was: CREATE TABLE "migration" (
"id" serial PRIMARY KEY,
"name" varchar(180) NOT NULL,
"apply_time" integer NOT NULL
) in D:\codes\php\src\yii3\test_1\vendor\yiisoft\db\src\Exception\ConvertException.php:45 while running console command "migrate:up".
how to tell the migration to do creating table migration to our user schema, not public schema?
-[ RECORD 4 ]-----+---------------------------------------
Name | public
Owner | pg_database_owner
Access privileges | pg_database_owner=UC/pg_database_owner+
| =U/pg_database_owner +
| superman=UC/pg_database_owner
Description | standard public schema