You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Doctrine Migrations for the first time, a table is automatically created, which allows for quick and easy usage. In PostgreSQL, the default schema is public schema, which is automatically created by PostgreSQL itself. Since it is the default schema, it is used by default by Doctrine Migrations as well.
Although this works fine for user accounts who are owner of that database, or a user with superuser privileges, accounts who aren't the database owner aren't privileged to create anything in the public schema anymore since PostgreSQL 15. In this case, the doctrine_migration_versions table can't be created. The intuitive option would be to change the migrations table to a different schema, where the user has creation privileges. However, in contrast to tables, schema's aren't automatically created by Doctrine Migrations. Therefore, my suggestion would be to automatically create the relevant schema on schema-aware database implementations, as this would match the behaviour of table creation as well.
The text was updated successfully, but these errors were encountered:
@stof As far as I could find/test, that is possible. Creating tables/other resources within the public schema is limited, but creating other schema's, as well as creating resources within those schema's, is permitted.
Feature Request
Summary
When using Doctrine Migrations for the first time, a table is automatically created, which allows for quick and easy usage. In PostgreSQL, the default schema is
public
schema, which is automatically created by PostgreSQL itself. Since it is the default schema, it is used by default by Doctrine Migrations as well.Although this works fine for user accounts who are owner of that database, or a user with superuser privileges, accounts who aren't the database owner aren't privileged to create anything in the public schema anymore since PostgreSQL 15. In this case, the doctrine_migration_versions table can't be created. The intuitive option would be to change the migrations table to a different schema, where the user has creation privileges. However, in contrast to tables, schema's aren't automatically created by Doctrine Migrations. Therefore, my suggestion would be to automatically create the relevant schema on schema-aware database implementations, as this would match the behaviour of table creation as well.
The text was updated successfully, but these errors were encountered: