Giter Club home page Giter Club logo

Comments (5)

rootpd avatar rootpd commented on September 16, 2024 1

This unfortunately wouldn't create json type in MySQL/Percona. Also we use JSON types in other parts of REMP tools.

Any chance you could upgrade to 10.2.7+? That version has added alias for JSON type doing exactly what you achieved by changing the migration.

https://mariadb.com/kb/en/library/json-data-type/

from remp.

rootpd avatar rootpd commented on September 16, 2024

Hi, based on the error message, it looks like you're using MariaDB. What version do you have? Does it support JSON data type?

from remp.

j-norwood-young avatar j-norwood-young commented on September 16, 2024

It's version 10.1.38-MariaDB-0ubuntu0.18.04.1. It doesn't look like MariaDB has the JSON datatype - it uses LONGTEXT instead.

I have fixed the issue with the following migrations/20181106082909_add_extras_to_mail_templates.php:

<?php

use Phinx\Migration\AbstractMigration;
use Phinx\Db\Adapter\MysqlAdapter;

class AddExtrasToMailTemplates extends AbstractMigration
{
    public function change()
    {
        $this->table('mail_templates')
            ->addColumn('extras', 'text', ['null' => true, 'limit' => MysqlAdapter::TEXT_LONG])
            ->update();
    }
}

from remp.

j-norwood-young avatar j-norwood-young commented on September 16, 2024

Upgrading to 10.3 has solved the problem. (I also got a "Specified key was too long" error with the previous version.)

from remp.

rootpd avatar rootpd commented on September 16, 2024

Great, we'll update the README to mention this as MariaDB might be used by more people.

from remp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.