]> _ Git - cubist_cms-back.git/commitdiff
wip #5718 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 Feb 2023 15:22:42 +0000 (16:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 Feb 2023 15:22:42 +0000 (16:22 +0100)
src/app/Console/Commands/MigrateCommand.php
src/app/Magic/Traits/CustomDataSource.php [new file with mode: 0644]

index 64888db0f071ca3beb670dcc67a4eefdff899938..caee49f06e8705ff78228c29105ec9293ebad52b 100644 (file)
@@ -34,7 +34,7 @@ class MigrateCommand extends CubistMagicCommand
     public function handle()
     {
         $this->_handleMagicFolder([$this, '_migrate']);
-        $drivers = ['mysql' => 'pdo_mysql'];
+        $drivers = ['mysql' => 'pdo_mysql','sqlite'=>'pdo_sqlite'];
 
         foreach ($this->_schemas as $connection => $schema) {
             if (!$connection) {
diff --git a/src/app/Magic/Traits/CustomDataSource.php b/src/app/Magic/Traits/CustomDataSource.php
new file mode 100644 (file)
index 0000000..1c01e13
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+
+namespace Cubist\Backpack\Magic\Traits;
+
+trait CustomDataSource
+{
+
+}