Skip to content

Instantly share code, notes, and snippets.

@Podshik
Podshik / d8module.install
Created May 3, 2019 12:27 — forked from laradevitt/d8module.install
(Drupal 8) Create a table in a database other than the default during module installation. Database must already be specified in settings.php.
<?php
/**
* @file
* Install, update and uninstall functions for the d8module module.
*/
function d8module_schema_otherdb() {
$schema['mytable'] = array(
'description' => 'My table description',