<?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 Version20230110094814 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cihazlar CHANGE sinif sinif VARCHAR(255) DEFAULT NULL, CHANGE kapasite kapasite VARCHAR(255) DEFAULT NULL, CHANGE uretim_yili uretim_yili VARCHAR(255) DEFAULT NULL, CHANGE d_taksir d_taksir VARCHAR(255) DEFAULT NULL, CHANGE e_muayene e_muayene VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE subeler ADD tip INT NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cihazlar CHANGE sinif sinif VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE kapasite kapasite VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE uretim_yili uretim_yili VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE d_taksir d_taksir VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE e_muayene e_muayene VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE subeler DROP tip');
}
}