HEX
Server: Apache
System: Linux server1.ariadata.co 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: nepi (1051)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,show_source,popen,proc_open
Upload Files
File: /home/nepi/www/migrations/upgrades/20190422131600_use_json.php
<?php

use Phinx\Migration\AbstractMigration;

class UseJson extends AbstractMigration
{
    public function up()
    {
        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_activity', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_activity_seen', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_collection_presets', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_collections', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_fields', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_files', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_folders', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_migrations', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_permissions', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_relations', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_revisions', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_roles', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_settings', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_user_roles', 'interface' => 'code']
        ));

        $this->execute(\Directus\phinx_update(
            $this->getAdapter(),
            'directus_fields',
            [
              'interface' => 'json'
            ],
            ['collection' => 'directus_users', 'interface' => 'code']
        ));
    }
}