From 0ca57c9a91a433456f79fbf7a7c2111e67b98e2e Mon Sep 17 00:00:00 2001 From: Remco Date: Mon, 2 Feb 2026 20:27:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20Fix=20migrations=20to=20new=20fi?= =?UTF-8?q?lament=20names=20=F0=9F=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{WebsiteTeam.php => TeamsController.php} | 0 cms update/composer.lock | 66 +++++++++++-------- ...00000_create_website_navigations_table.php | 26 ++++++++ ...02_02_130000_create_camera_likes_table.php | 24 +++++++ ...02_02_131000_create_camera_views_table.php | 25 +++++++ 5 files changed, 114 insertions(+), 27 deletions(-) rename cms update/app/Http/Controllers/Community/Teams/{WebsiteTeam.php => TeamsController.php} (100%) create mode 100644 cms update/database/migrations/2026_02_02_000000_create_website_navigations_table.php create mode 100644 cms update/database/migrations/2026_02_02_130000_create_camera_likes_table.php create mode 100644 cms update/database/migrations/2026_02_02_131000_create_camera_views_table.php diff --git a/cms update/app/Http/Controllers/Community/Teams/WebsiteTeam.php b/cms update/app/Http/Controllers/Community/Teams/TeamsController.php similarity index 100% rename from cms update/app/Http/Controllers/Community/Teams/WebsiteTeam.php rename to cms update/app/Http/Controllers/Community/Teams/TeamsController.php diff --git a/cms update/composer.lock b/cms update/composer.lock index 50cf80919f..e6f23a1dcb 100644 --- a/cms update/composer.lock +++ b/cms update/composer.lock @@ -2643,23 +2643,23 @@ }, { "name": "jaybizzle/crawler-detect", - "version": "v1.3.6", + "version": "v1.3.7", "source": { "type": "git", "url": "https://github.com/JayBizzle/Crawler-Detect.git", - "reference": "61f2ef1ad2d0ae922c265931cb0a8032a1ed2813" + "reference": "7f7a45b5d5df9c95ba6b2008544e6cf8e66de6f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/61f2ef1ad2d0ae922c265931cb0a8032a1ed2813", - "reference": "61f2ef1ad2d0ae922c265931cb0a8032a1ed2813", + "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/7f7a45b5d5df9c95ba6b2008544e6cf8e66de6f5", + "reference": "7f7a45b5d5df9c95ba6b2008544e6cf8e66de6f5", "shasum": "" }, "require": { "php": ">=7.1.0" }, "require-dev": { - "phpunit/phpunit": "^4.8|^5.5|^6.5|^9.4" + "phpunit/phpunit": "^4.8|^5.5|^6.5|^7.5|^8.5|^9.4" }, "type": "library", "autoload": { @@ -2689,9 +2689,9 @@ ], "support": { "issues": "https://github.com/JayBizzle/Crawler-Detect/issues", - "source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.3.6" + "source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.3.7" }, - "time": "2025-09-30T16:22:43+00:00" + "time": "2026-02-02T19:15:54+00:00" }, { "name": "jenssegers/agent", @@ -6698,22 +6698,22 @@ }, { "name": "spatie/shiki-php", - "version": "2.3.2", + "version": "2.3.3", "source": { "type": "git", "url": "https://github.com/spatie/shiki-php.git", - "reference": "a2e78a9ff8a1290b25d550be8fbf8285c13175c5" + "reference": "9d50ff4d9825d87d3283a6695c65ae9c3c3caa6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/shiki-php/zipball/a2e78a9ff8a1290b25d550be8fbf8285c13175c5", - "reference": "a2e78a9ff8a1290b25d550be8fbf8285c13175c5", + "url": "https://api.github.com/repos/spatie/shiki-php/zipball/9d50ff4d9825d87d3283a6695c65ae9c3c3caa6b", + "reference": "9d50ff4d9825d87d3283a6695c65ae9c3c3caa6b", "shasum": "" }, "require": { "ext-json": "*", "php": "^8.0", - "symfony/process": "^5.4|^6.4|^7.1" + "symfony/process": "^5.4|^6.4|^7.1|^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^v3.0", @@ -6751,7 +6751,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/shiki-php/tree/2.3.2" + "source": "https://github.com/spatie/shiki-php/tree/2.3.3" }, "funding": [ { @@ -6759,7 +6759,7 @@ "type": "github" } ], - "time": "2025-02-21T14:16:57+00:00" + "time": "2026-02-01T09:30:04+00:00" }, { "name": "srmklive/paypal", @@ -10286,16 +10286,16 @@ }, { "name": "laravel/boost", - "version": "v2.0.4", + "version": "v2.0.5", "source": { "type": "git", "url": "https://github.com/laravel/boost.git", - "reference": "6f7a9f70c1b2cc5fcef1585e8aa04b8546f150e9" + "reference": "00eede2041a9bac83eabbd3b3f16bd4aa91277c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/boost/zipball/6f7a9f70c1b2cc5fcef1585e8aa04b8546f150e9", - "reference": "6f7a9f70c1b2cc5fcef1585e8aa04b8546f150e9", + "url": "https://api.github.com/repos/laravel/boost/zipball/00eede2041a9bac83eabbd3b3f16bd4aa91277c9", + "reference": "00eede2041a9bac83eabbd3b3f16bd4aa91277c9", "shasum": "" }, "require": { @@ -10348,7 +10348,7 @@ "issues": "https://github.com/laravel/boost/issues", "source": "https://github.com/laravel/boost" }, - "time": "2026-01-28T13:53:50+00:00" + "time": "2026-02-01T09:52:44+00:00" }, { "name": "laravel/mcp", @@ -11961,28 +11961,28 @@ }, { "name": "phpunit/php-file-iterator", - "version": "5.1.0", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2f3a64888c814fc235386b7387dd5b5ed92ad903", + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -12010,15 +12010,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" } ], - "time": "2024-08-27T05:02:59+00:00" + "time": "2026-02-02T13:52:54+00:00" }, { "name": "phpunit/php-invoker", diff --git a/cms update/database/migrations/2026_02_02_000000_create_website_navigations_table.php b/cms update/database/migrations/2026_02_02_000000_create_website_navigations_table.php new file mode 100644 index 0000000000..903c12c605 --- /dev/null +++ b/cms update/database/migrations/2026_02_02_000000_create_website_navigations_table.php @@ -0,0 +1,26 @@ +id(); + $table->string('name'); + $table->string('url'); + $table->string('icon')->nullable(); + $table->unsignedInteger('order')->default(0); + $table->unsignedBigInteger('parent_id')->nullable(); + $table->foreign('parent_id')->references('id')->on('website_navigations')->onDelete('cascade'); + }); + } + + public function down(): void + { + Schema::dropIfExists('website_navigations'); + } +}; diff --git a/cms update/database/migrations/2026_02_02_130000_create_camera_likes_table.php b/cms update/database/migrations/2026_02_02_130000_create_camera_likes_table.php new file mode 100644 index 0000000000..f39c771d22 --- /dev/null +++ b/cms update/database/migrations/2026_02_02_130000_create_camera_likes_table.php @@ -0,0 +1,24 @@ +id(); + $table->unsignedBigInteger('camera_id'); + $table->unsignedBigInteger('user_id'); + $table->foreign('camera_id')->references('id')->on('camera_web')->onDelete('cascade'); + $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); + }); + } + + public function down(): void + { + Schema::dropIfExists('camera_likes'); + } +}; diff --git a/cms update/database/migrations/2026_02_02_131000_create_camera_views_table.php b/cms update/database/migrations/2026_02_02_131000_create_camera_views_table.php new file mode 100644 index 0000000000..be6e250639 --- /dev/null +++ b/cms update/database/migrations/2026_02_02_131000_create_camera_views_table.php @@ -0,0 +1,25 @@ +id(); + $table->unsignedBigInteger('camera_id'); + $table->unsignedBigInteger('user_id')->nullable(); + $table->string('ip_address', 45)->nullable(); + $table->timestamp('created_at')->useCurrent(); + $table->foreign('camera_id')->references('id')->on('camera_web')->onDelete('cascade'); + }); + } + + public function down(): void + { + Schema::dropIfExists('camera_views'); + } +};