diff --git a/composer.json b/composer.json index d31836b..6142fe2 100755 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "thedevsaddam/laravel-schema", + "name": "ice6/laravel-schema", "description": "Display the connected database information in console.", "type": "package", "keywords": [ @@ -10,7 +10,7 @@ "database", "laravel-database viewer" ], - "homepage": "https://github.com/thedevsaddam/laravel-schema", + "homepage": "https://github.com/ice6/laravel-schema", "license": "MIT", "authors": [ { diff --git a/src/Schema/Wrapper/MysqlWrapper.php b/src/Schema/Wrapper/MysqlWrapper.php index a904396..9a4091f 100644 --- a/src/Schema/Wrapper/MysqlWrapper.php +++ b/src/Schema/Wrapper/MysqlWrapper.php @@ -35,7 +35,7 @@ public function getTables() public function getColumns($tableName) { - return $this->transformColumns($this->baseSchema->database->select("SHOW COLUMNS FROM " . $tableName)); + return $this->transformColumns($this->baseSchema->database->select("SHOW COLUMNS FROM `{$tableName}`")); } public function getSchema() @@ -242,4 +242,4 @@ public function showDatabaseStatus($sleep = 2) ]; } -} \ No newline at end of file +}