issues
search
reliese
/
laravel
Reliese Laravel Model Generator
MIT License
1.49k
stars
317
forks
source link
Fix: for Issue with Model Generation in PostgreSQL with Multiple Schemas
#281
Open
endou-mame
opened
6 months ago
endou-mame
commented
6 months ago
Phenomenon
When using PostgreSQL, if there are schemas other than the
public
schema, the
Model
is not generated correctly.
Cause
When executing the SQL to retrieve table metadata for generating the
Model
, the data is duplicated for each schema.
Solution
Modify the SQL statement to only retrieve metadata from the
public
schema, even when multiple schemas exist.
Phenomenon
public
schema, theModel
is not generated correctly.Cause
Model
, the data is duplicated for each schema.Solution
public
schema, even when multiple schemas exist.