table('product_photos'); $table->changeColumn('product_id', 'uuid', [ 'default' => null, 'limit' => 11, 'null' => true, ]); $table->changeColumn('product_category_id', 'uuid', [ 'default' => null, 'limit' => 11, 'null' => false, ]); $table->update(); } /** * Change Method. * * More information on this method is available here: * https://book.cakephp.org/migrations/4/en/migrations.html#the-change-method * @return void */ public function down(): void { $table = $this->table('product_photos'); $table->changeColumn('product_id', 'uuid', [ 'default' => null, 'limit' => 11, 'null' => false, ]); $table->changeColumn('product_category_id', 'uuid', [ 'default' => null, 'limit' => 11, 'null' => true, ]); $table->update(); } }