fix offers.php + update support enum

This commit is contained in:
xiaomlove
2021-06-04 10:26:34 +08:00
parent cf4479ebea
commit 96f78f6dd8
6 changed files with 501 additions and 43 deletions
+3 -1
View File
@@ -218,7 +218,9 @@ class DB
$capsule->addConnection($config, $connectionName);
$capsule->setAsGlobal();
$capsule->bootEloquent();
$capsule->getConnection($connectionName)->enableQueryLog();
$connection = $capsule->getConnection($connectionName);
$connection->enableQueryLog();
$connection->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
}
public static function schema(): \Illuminate\Database\Schema\Builder