fixed migration

This commit is contained in:
vedatakd 2021-04-30 11:45:53 +03:00
parent 26daad04d4
commit 0e756d3ca3

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')) {