From 11f4ccb946388d52f29658e1cfca22a4c9858068 Mon Sep 17 00:00:00 2001 From: Benjamin Nussbaum Date: Fri, 14 Mar 2025 17:39:00 +0100 Subject: [PATCH] feat: add migration for Plugins --- ...2025_03_07_133658_create_plugins_table.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2025_03_07_133658_create_plugins_table.php diff --git a/database/migrations/2025_03_07_133658_create_plugins_table.php b/database/migrations/2025_03_07_133658_create_plugins_table.php new file mode 100644 index 0000000..7361b7b --- /dev/null +++ b/database/migrations/2025_03_07_133658_create_plugins_table.php @@ -0,0 +1,38 @@ +id(); + $table->string('uuid')->nullable(); + $table->foreignIdFor(User::class)->nullable(); + $table->string('name')->nullable(); + $table->text('data_payload')->nullable(); + $table->integer('data_stale_minutes')->nullable(); + $table->string('data_strategy')->nullable(); + $table->string('polling_url')->nullable(); + $table->string('polling_verb')->nullable(); + $table->string('polling_header')->nullable(); + $table->text('render_markup')->nullable(); + $table->string('render_markup_view')->nullable(); + $table->string('detail_view_route')->nullable(); + $table->string('icon_url')->nullable(); + $table->string('flux_icon_name')->nullable(); + $table->string('author_name')->nullable(); + $table->boolean('is_native')->default(false); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('plugins'); + } +};