From 3f5c2bfbd5b689b27fad1b2d090ea93f9071e862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=B9=96=E4=B9=89=E6=B0=94?= Date: Mon, 26 Feb 2024 09:50:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:getTables=20getColumns=20laravel=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Generators/Model/Generator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generators/Model/Generator.php b/src/Generators/Model/Generator.php index 1dc65fd..37b5f5e 100644 --- a/src/Generators/Model/Generator.php +++ b/src/Generators/Model/Generator.php @@ -174,7 +174,7 @@ protected function getTableSchemas(): array */ protected function getTables(): array { - if (version_compare('10.0.0', app()->version()) === 1) { + if (version_compare('10.34.0', app()->version()) === 1) { $sql = sprintf( 'select table_name as `name`, (data_length + index_length) as `size`, ' .'table_comment as `comment`, engine as `engine`, table_collation as `collation` ' @@ -217,7 +217,7 @@ protected function getTableColumn(string $table): array */ protected function getColumns(string $table): array { - if (version_compare('10.0.0', app()->version()) === 1) { + if (version_compare('10.30.0', app()->version()) === 1) { $sql = sprintf( 'select column_name as `name`, data_type as `type_name`, column_type as `type`, ' .'collation_name as `collation`, is_nullable as `nullable`, '