Merge pull request #1064 from openclassify/vedat

fixed migration
This commit is contained in:
Fatih Alp 2021-04-30 19:04:57 +03:00 committed by GitHub
commit 1721209379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,13 @@ use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleAdvsChangeProductOptionsValue extends Migration
{
public function __construct()
{
//Maria DB will be removed when the version is updated.
\Illuminate\Support\Facades\DB::getDoctrineSchemaManager()
->getDatabasePlatform()->registerDoctrineTypeMapping('point', 'string');
}
public function up()
{
if (!$field = $this->fields()->findBySlugAndNamespace('product_options_value', 'advs')) {