<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250203142007 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("CREATE TABLE `dp_production_dashboard_report` (
`id` int NOT NULL AUTO_INCREMENT,
`company_id` int NOT NULL,
`created_by_id` int NOT NULL,
`deleted_by_id` int DEFAULT NULL,
`block_type` varchar(255) DEFAULT NULL,
`block_label` varchar(255) DEFAULT NULL,
`chart_type` varchar(255) DEFAULT NULL,
`sort_order` int DEFAULT NULL,
`size` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`is_deleted` int DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `company_id` (`company_id`),
KEY `created_by_id` (`created_by_id`),
KEY `deleted_by_id` (`deleted_by_id`),
CONSTRAINT `dp_production_dashboard_report_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `company` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `dp_production_dashboard_report_ibfk_2` FOREIGN KEY (`created_by_id`) REFERENCES `user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `dp_production_dashboard_report_ibfk_3` FOREIGN KEY (`deleted_by_id`) REFERENCES `user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4");
}
public function down(Schema $schema): void
{
$this->addSql("DROP TABLE dp_production_dashboard_report");
}
}