Skip to content

Conversation

@RomikMakavana
Copy link

@RomikMakavana RomikMakavana commented Oct 2, 2020

I've removed quotation mark if exist in tablename value.
facing as issue during generation of file and also tablename

Database : PostgreSQL

I am using PostgreSQL, Ive created table in capital letters "SERP_feature"
image

When I have tried to generate migration file
throw an error because filename must not include quotation mark

filename must be create_SERP_feature_table.php, where it takes create_"SERP_feature"_table.php

image

So, Pls accept my pull request and issue will resolve

Thank you,

Copy link

@shailendra-ehs shailendra-ehs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is done.

return $this->schema->listTableNames();
$tableNames = $this->schema->listTableNames();
$tableNames = array_map(function($tableName){return trim($tableName,'"');}, $tableNames);
return $tableNames;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Romik,

I think it will return proper list of Table. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants