diff --git a/database/migrations/2023_11_27_215150_create_wizard_templates_table.php b/database/migrations/2023_11_27_215150_create_wizard_templates_table.php new file mode 100644 index 0000000000..d7a34c4789 --- /dev/null +++ b/database/migrations/2023_11_27_215150_create_wizard_templates_table.php @@ -0,0 +1,32 @@ +id(); + $table->uuid('uuid')->unique(); + $table->unsignedBigInteger('process_template_id')->nullable(); + $table->unsignedInteger('process_id'); + $table->string('media_collection')->nullable(); + $table->timestamps(); + + // Foreign keys + $table->foreign('process_id') + ->references('id') + ->on('processes') + ->onDelete('cascade') + ->constrained('processes'); + }); + } + + public function down() + { + Schema::dropIfExists('wizard_templates'); + } +} diff --git a/database/migrations/2023_11_28_150344_add_asset_type_column_to_process_templates.php b/database/migrations/2023_11_28_150344_add_asset_type_column_to_process_templates.php new file mode 100644 index 0000000000..d311e876d6 --- /dev/null +++ b/database/migrations/2023_11_28_150344_add_asset_type_column_to_process_templates.php @@ -0,0 +1,27 @@ +string('asset_type')->nullable()->after('is_system'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('process_templates', function (Blueprint $table) { + $table->dropColumn('asset_type'); + }); + } +};