Skip to content

Commit

Permalink
Menu Boards Migration : install the module
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMis committed Apr 28, 2021
1 parent c186460 commit 363c1cc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions db/migrations/20210128143602_menu_boards_migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,23 @@ public function change()
['entity' => 'Xibo\Entity\MenuBoard']
])
->save();

if (!$this->fetchRow('SELECT * FROM module WHERE module = \'menuboard\'')) {
$this->table('module')->insert([
'module' => 'menuboard',
'name' => 'Menu Board',
'enabled' => 1,
'regionSpecific' => 1,
'description' => 'Module for displaying Menu Boards',
'schemaVersion' => 1,
'validExtensions' => '',
'previewEnabled' => 1,
'assignable' => 1,
'render_as' => 'html',
'viewPath' => '../modules',
'class' => 'Xibo\Widget\MenuBoard',
'defaultDuration' => 60
])->save();
}
}
}

0 comments on commit 363c1cc

Please sign in to comment.