Gian2003k you can use following commands to do that:
change for, if the plugin is a dir:
UPDATE ost_plugin SET install_path = 'plugins/auth-oauth2', isphar = '0' WHERE install_path LIKE 'plugins/auth-oauth2%';
change for, if the plugin is a phar file:
UPDATE ost_plugin SET install_path = 'plugins/auth-oauth2.phar', isphar = '1' WHERE install_path LIKE 'plugins/auth-oauth2%';
I hope, it helps you to do the task.