I have tried to create custom tables for a module in Drupal via hook_install()
and hook_schema()
in module.install, and it works fine after disabling and enabling module using drush dre module_name
. Is that the proper way to create tables in custom module ?
Can I use config/schema/module_name.schema.yml for creating tables? If not, what is the use of schema files in Drupal 8?