Commit 58e2a00a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat(media): save audio, images, transcripts and chapters to media for episode and persons

parent fafaa7e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -126,6 +126,10 @@ class Images extends BaseConfig
        ],
    ];

    public string $avatarDefaultPath = 'castopod-avatar-default.jpg';

    public string $avatarDefaultMimeType = 'image/jpg';

    public string $podcastBannerDefaultPath = 'castopod-banner-default.jpg';

    public string $podcastBannerDefaultMimeType = 'image/jpeg';
+2 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ class AddMedia extends Migration
            ],
            'file_metadata' => [
                'type' => 'JSON',
                'nullable' => true,
                'null' => true,
            ],
            'type' => [
                'type' => 'ENUM',
@@ -46,6 +46,7 @@ class AddMedia extends Migration
            ],
            'description' => [
                'type' => 'TEXT',
                'null' => true,
            ],
            'language_code' => [
                'type' => 'VARCHAR',
+0 −2
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ class AddPodcasts extends Migration
                'type' => 'INT',
                'unsigned' => true,
                'null' => true,
                'default' => null,
            ],
            'language_code' => [
                'type' => 'VARCHAR',
@@ -69,7 +68,6 @@ class AddPodcasts extends Migration
                'type' => 'ENUM',
                'constraint' => ['clean', 'explicit'],
                'null' => true,
                'default' => null,
            ],
            'owner_name' => [
                'type' => 'VARCHAR',
+0 −1
Original line number Diff line number Diff line
@@ -79,7 +79,6 @@ class AddEpisodes extends Migration
                'type' => 'ENUM',
                'constraint' => ['clean', 'explicit'],
                'null' => true,
                'default' => null,
            ],
            'number' => [
                'type' => 'INT',
+0 −1
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ class AddPlatforms extends Migration
                'type' => 'VARCHAR',
                'constraint' => 512,
                'null' => true,
                'default' => null,
            ],
        ]);
        $this->forge->addField('`created_at` timestamp NOT NULL DEFAULT NOW()');
Loading