'Magento 2 - Theme Type Automatically change, 0:physical, to 1:virtual

Sometimes on staging and production autmatically theme value changed,as table theme with field name 'type' changed 0 to 1.

Expected result

type field to stay at 0 (TYPE_PHYSICAL)

Actual result

type field changes to 1 (TYPE_VIRTUAL).

can check attachement, Image

How it could be reproduce and how it debug and fix ?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source