Add support for database migration

This commit is contained in:
Steve Ireland
2017-05-06 11:31:33 -04:00
parent c4a76ad01c
commit c0a9349b60
12 changed files with 276 additions and 33 deletions

View File

@@ -341,6 +341,7 @@ INSERT INTO `ospos_modules` (`name_lang_key`, `desc_lang_key`, `sort`, `module_i
('module_items', 'module_items_desc', 20, 'items'),
('module_item_kits', 'module_item_kits_desc', 30, 'item_kits'),
('module_messages', 'module_messages_desc', 100, 'messages'),
('module_migrate', 'module_migrate_desc', 120, 'migrate'),
('module_receivings', 'module_receivings_desc', 60, 'receivings'),
('module_reports', 'module_reports_desc', 50, 'reports'),
('module_sales', 'module_sales_desc', 70, 'sales'),
@@ -414,6 +415,7 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`) VALUES
('items', 'items'),
('item_kits', 'item_kits'),
('messages', 'messages'),
('migrate', 'migrate'),
('receivings', 'receivings'),
('reports', 'reports'),
('sales', 'sales'),
@@ -461,6 +463,7 @@ INSERT INTO `ospos_grants` (`permission_id`, `person_id`) VALUES
('items', 1),
('item_kits', 1),
('messages', 1),
('migrate', 1),
('receivings', 1),
('reports', 1),
('sales', 1),