Skip to content

Commit a732631

Browse files
authored
Merge pull request #39 from amirnajmi79/master
Add decimal data type
2 parents 135f2e3 + 84eaf91 commit a732631

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Commands/BaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function checkDatabasesExist()
141141
$mysql = config('repository.path.relative.repositories') . DIRECTORY_SEPARATOR . $entityName . DIRECTORY_SEPARATOR . 'MySql' . $entityName . 'Repository.php';
142142
$redis = config('repository.path.relative.repositories') . DIRECTORY_SEPARATOR . $entityName . DIRECTORY_SEPARATOR . 'Redis' . $entityName . 'Repository.php';
143143

144-
if (!(file_exists($mysql) && file_exists($redis))) {
144+
if (!(file_exists($mysql) || file_exists($redis))) {
145145
$this->alert("First create the class databases!!!");
146146
exit;
147147
}

src/CustomMySqlQueries.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ trait CustomMySqlQueries
1919
'mediumint' => 'int',
2020
'bigint' => 'int',
2121
'float' => 'float',
22+
'decimal' => 'float',
2223
'double' => 'float',
2324
'json' => 'string',
2425
'char' => 'string',

0 commit comments

Comments
 (0)