Skip to content

remove quotation from tablename if exit - #205

Open
RomikMakavana wants to merge 1 commit into
Xethron:masterfrom
RomikMakavana:master
Open

RomikMakavana wants to merge 1 commit into
Xethron:masterfrom
RomikMakavana:master

Conversation

@RomikMakavana

@RomikMakavana RomikMakavana commented Oct 2, 2020

Copy link
Copy Markdown

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,

@shailendra-ehs shailendra-ehs left a comment

Copy link
Copy Markdown

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;

Copy link
Copy Markdown

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