Sorry if this is a duplicate, I found only a bunch of issues complaining on unable to uninstall the module, but the problem happens for me on installing it

So here is what I have:
- a site where there was no filefield_paths
- install filefield_paths
- found strange issues - origname tokens not working
- after debugging found that column origname is NOT added to file_managed table

I found this issue where filefield_paths_update_8001 was introduced

but hook updates are NOT executed on fresh installations - only for already installed module where the hook was not yet executed.

This has to be in hook_install and not in the update hook.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gilmord created an issue. See original summary.

voleger’s picture

voleger’s picture

Status: Needs work » Fixed

Fixed thanks

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

voleger’s picture

Assigned: voleger » Unassigned

  • voleger committed 886c2bc4 on 8.x-1.x
    fix: #3556209 Field origname is not installed on fresh instances
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.