diff --git a/ProcessMaker/Models/Bookmark.php b/ProcessMaker/Models/Bookmark.php new file mode 100644 index 0000000000..67e3f64af7 --- /dev/null +++ b/ProcessMaker/Models/Bookmark.php @@ -0,0 +1,25 @@ +json('launchpad_properties')->nullable(); + }); + Schema::table('process_versions', function (Blueprint $table) { + $table->json('launchpad_properties')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('processes', function (Blueprint $table) { + $table->dropColumn(['launchpad_properties']); + }); + Schema::table('process_versions', function (Blueprint $table) { + $table->dropColumn(['launchpad_properties']); + }); + } +}; diff --git a/database/migrations/2023_11_30_170839_create_user_process_bookmarks_table.php b/database/migrations/2023_11_30_170839_create_user_process_bookmarks_table.php new file mode 100644 index 0000000000..3c113edd96 --- /dev/null +++ b/database/migrations/2023_11_30_170839_create_user_process_bookmarks_table.php @@ -0,0 +1,32 @@ +bigIncrements('id'); + $table->unsignedBigInteger('user_id'); + $table->unsignedInteger('process_id'); + $table->timestamps(); + + // Foreign keys + $table->foreign('process_id')->references('id')->on('processes')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('user_process_bookmarks'); + } +};