Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove quotation from tablename if exit #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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