addSql(<<<'SQL' ALTER TABLE permission DROP plugHrmAttendance SQL); $this->addSql(<<<'SQL' ALTER TABLE plug_hrm_attendance CHANGE total_hours total_hours INT DEFAULT NULL, CHANGE overtime_hours overtime_hours INT DEFAULT NULL, CHANGE created_at created_at DATETIME NOT NULL, CHANGE updated_at updated_at DATETIME NOT NULL SQL); $this->addSql(<<<'SQL' ALTER TABLE plug_hrm_attendance_item CHANGE created_at created_at DATETIME NOT NULL SQL); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql(<<<'SQL' ALTER TABLE permission ADD plugHrmAttendance TINYINT(1) DEFAULT NULL SQL); $this->addSql(<<<'SQL' ALTER TABLE plug_hrm_attendance CHANGE total_hours total_hours INT NOT NULL, CHANGE overtime_hours overtime_hours INT NOT NULL, CHANGE created_at created_at INT NOT NULL, CHANGE updated_at updated_at INT NOT NULL SQL); $this->addSql(<<<'SQL' ALTER TABLE plug_hrm_attendance_item CHANGE created_at created_at INT NOT NULL SQL); } }