I am creating a custom Module, in that I created a custom table and patch data. The patch data for inserting data into that table. Now the issue is, the custom table was created through declarative schema, when I am installing a module, the patch data get executed before table creation, so it is throwing errors. I would like to add table schema as a dependency in setup patch data using public static function getDependencies()
function.
Is this possible to add table schema as a dependency in setup patch data? If not please suggest me a better solution to fix this.
Note: I don't want to use setup scripts (Install/Upgrade scripts) to create tables. I just want to achieve this with declarative schema.
Thanks in advance!