Add service templates

This commit is contained in:
Anthony F McInerney
2020-09-23 02:50:58 +01:00
parent dd5c78f9b7
commit 8f4e19d411
2 changed files with 1 additions and 3 deletions
@@ -20,10 +20,9 @@ class CreateServicesTemplateTable extends Migration
$table->text('service_template_desc');
$table->text('service_template_param');
$table->boolean('service_template_ignore');
$table->tinyInteger('service_template_status')->default(0);
$table->unsignedInteger('service_template_changed')->default(0);
$table->boolean('service_template_disabled')->default(0);
//$table->index(['services_template_device_group_id_index','device_group_id']);
//$table->index(['device_group_id'],'services_template_device_group_id_index');
});
Schema::table('services', function (Blueprint $table) {
$table->unsignedInteger('service_template_id')->default(0);
-1
View File
@@ -1733,7 +1733,6 @@ services_template:
- { Field: service_template_desc, Type: text, 'Null': false, Extra: '' }
- { Field: service_template_param, Type: text, 'Null': false, Extra: '' }
- { Field: service_template_ignore, Type: tinyint, 'Null': false, Extra: '' }
- { Field: service_template_status, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: service_template_changed, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: service_template_disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes: