ترحيل قواعد بيانات الإضافات

You don’t run migrations from within a plugin.

In a Dev environment you perform them from the console.

Why? Because when you deploy a plugin the migrations are taken care of by the host app.

It’s out of scope of what a plugin should do.

(FYI that’s not to say you don’t include migrations within the plugin if you are e.g. modifying the database but the plugin is not going to perform the migrations)