czorny813 - 8 months ago

Hi,

How add fields in form in exists module?

Thanks.

ryanthompson - 8 months ago

Can you rephrase this a bit? Not sure what you are asking.

czorny813 - 8 months ago

Sure, i want add fields in files-module and column on db. But my page is running and i cant refresh migration.

ryanthompson - 8 months ago

Ah gotcha - well you have 2 options:

Use a migration to migrate the field into the files namespace OR use custom fields via folders as already existing in the files module.

Then just override the files table by class binding and edit the $columns property as desired.

czorny813 - 8 months ago

The problem is that I do not know what this migration should look like?

ryanthompson - 8 months ago

You can do a "quick" migration using $fields and $stream for example or you can use the repositories for fields in the construct. There are lots of examples out there.

The main thing though is you'll wanna make sure the NAMESPACE is files since that's where you want to add fields. But the migration won't reside in the files module and won't pick up the namespace automatically.