PHP code example of carbon / automigrate
1. Go to this page and download the library: Download carbon/automigrate library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
carbon / automigrate example snippets
namespace Neos\Flow\Persistence\Doctrine\Migrations;
use Carbon\AutoMigrate\RenameNodeTypesMigration;
class Version20241005130500 extends RenameNodeTypesMigration
{
public array $nodeTypes = [
"Vendor.Example:Content.OldNodeType" => "Vendor.Example:Content.NewNodeType",
"Vendor.Example:Document.OldNodeType" => "Vendor.Example:Document.NewNodeType",
];
}