<?php

namespace boltabandoned\bootstrapcolorpicker\Field;

use Bolt\Storage\Field\Type\FieldTypeBase;

class BootstrapColorPickerPickerField extends FieldTypeBase
{

    public function getName()
    {
        return 'bootstrapcolorpicker';
    }

    public function getTemplate()
    {
        return '_bootstrap-colorpicker.twig';
    }

    public function getStorageType()
    {
        return 'text';
    }

    public function getStorageOptions()
    {
        return ['default'=>''];
    }
}

<?php

namespace boltabandoned\bootstrapcolorpicker\Field;

use Bolt\Storage\Field\Type\FieldTypeBase;

class BootstrapColorPickerPickerField extends FieldTypeBase
{

    public function getName()
    {
        return 'bootstrapcolorpicker';
    }

    public function getTemplate()
    {
        return '_bootstrap-colorpicker.twig';
    }

    public function getStorageType()
    {
        return 'text';
    }

    public function getStorageOptions()
    {
        return ['default'=>null];
    }
}

Fix column default value for MySQL database
Fix column default value for MySQL database
