Additional user info V1 -> V2

Ahoi, currently I am working on migration of running project from V1 to V2. In former version there where lots of additional information per user to be stored. The fields have been configured in the config.php. I just copied the old configuration into the config folder. It seems that its not processed.

 'account' => [
        'fields' => [

            'gender' => [
                'type' => 'select',
                'label' => 'Anrede',
                'options' => [
                  'options' => [
                    ['label' => 'Frau', 'value' => 'Frau'],
                    ['label' => 'Herr', 'value' => 'Herr']
                  ]
                ]
            ],

            'titel' => [
                'type' => 'text',
                'label' => 'Titel',
            ],

            'firstname' => [
                'type' => 'text',
                'label' => 'Vorname',
            ],

            'lastname' => [
                'type' => 'text',
                'label' => 'Nachname',
            ],

            'street' => [
                'type' => 'text',
                'label' => 'Strasse',
            ],

            'streetnumber' => [
                'type' => 'text',
                'label' => 'Hausnummer',
            ],

            'city' => [
                'type' => 'text',
                'label' => 'Stadt',
            ],

            'zip' => [
                'type' => 'text',
                'label' => 'PLZ',
            ],
            'token' => [
                'type' => 'text',
                'label' => 'Token',
            ],
            'divisor' => [
                'type' => 'text',
                'label' => 'Divisor',
            ],
            'phone' => [
                'type' => 'text',
                'label' => 'Telefon'
            ]
        ]
    ],

Now I don´t know if this is just to be enabled and how or if its lost. In this case it would be letś say - a challenge.
Many thanks for hints.

According to my notes, this is not possible with v2 (yet): https://github.com/raffaelj/cockpit-scripts/blob/master/migrate-from-cockpit-v1-to-v2.md#accountsusers

I’m not 100% sure, if this changed during the last months.

1 Like