forge->addField([ 'podcast_id' => [ 'type' => 'INT', 'unsigned' => true, ], 'platform_slug' => [ 'type' => 'VARCHAR', 'constraint' => 32, ], 'link_url' => [ 'type' => 'VARCHAR', 'constraint' => 512, ], 'link_content' => [ 'type' => 'VARCHAR', 'constraint' => 128, 'null' => true, ], 'is_visible' => [ 'type' => 'TINYINT', 'constraint' => 1, 'default' => 0, ], 'is_on_embeddable_player' => [ 'type' => 'TINYINT', 'constraint' => 1, 'default' => 0, ], ]); $this->forge->addPrimaryKey(['podcast_id', 'platform_slug']); $this->forge->createTable('podcasts_platforms'); } public function down(): void { $this->forge->dropTable('podcasts_platforms'); } }