Browse Source

Merge pull request #2402 from pixelfed/staging

Update composer deps
daniel 4 years ago
parent
commit
71eccefd4f
3 changed files with 227 additions and 218 deletions
  1. 1 0
      composer.json
  2. 175 218
      composer.lock
  3. 51 0
      database/migrations/2020_08_18_022520_add_remote_url_to_stories_table.php

+ 1 - 0
composer.json

@@ -39,6 +39,7 @@
         "predis/predis": "^1.1",
         "spatie/laravel-backup": "^6.0.0",
         "spatie/laravel-image-optimizer": "^1.1",
+        "symfony/http-kernel": "5.1.5",
         "stevebauman/purify": "3.0.*"
     },
     "require-dev": {

File diff suppressed because it is too large
+ 175 - 218
composer.lock


+ 51 - 0
database/migrations/2020_08_18_022520_add_remote_url_to_stories_table.php

@@ -0,0 +1,51 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddRemoteUrlToStoriesTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('stories', function (Blueprint $table) {
+            $table->string('remote_url')->nullable()->index()->unique()->after('path');
+            $table->string('media_url')->nullable()->index()->unique()->after('remote_url');
+            $table->boolean('is_archived')->default(false)->nullable()->index();
+            $table->string('name')->nullable();
+        });
+        Schema::table('media', function (Blueprint $table) {
+            $table->string('blurhash')->nullable();
+            $table->json('srcset')->nullable();
+            $table->unsignedInteger('width')->nullable();
+            $table->unsignedInteger('height')->nullable();
+        });
+
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('stories', function (Blueprint $table) {
+            $table->dropColumn('remote_url');
+            $table->dropColumn('media_url');
+            $table->dropColumn('is_archived');
+            $table->dropColumn('name');
+        });
+        Schema::table('media', function (Blueprint $table) {
+            $table->dropColumn('blurhash');
+            $table->dropColumn('srcset');
+            $table->dropColumn('width');
+            $table->dropColumn('height');
+        });
+    }
+}

Some files were not shown because too many files changed in this diff