Skip to content

MG23 — CREATE TABLE name is not schema-qualified

Group: Migration safety · Auto-fixable: no

An unqualified CREATE TABLE relies on the session search_path, so the table can land in an unexpected schema. Qualify the name. Temporary tables are exempt.

bad: CREATE TABLE t (a int);
good: CREATE TABLE public.t (a int);

Disable this rule in banshee.toml:

[lint]
exclude = ["MG23"]

Or silence one line with -- noqa: MG23. See Linting.