Bencor29 / pterodactyl-panel-module-support

Pterodactyl is the open-source game server management panel built with PHP7, Nodejs, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to administrators and users.
https://pterodactyl.io
Other
2 stars 0 forks source link

500 error when deleting a server #1

Closed Bencor29 closed 5 years ago

Bencor29 commented 5 years ago

When a server is associated with a ticket, you got a 500 from pterodactyl when you try to delete the server.

ghost commented 5 years ago

a way to remove server option?

Bencor29 commented 5 years ago

@lazarsn I'll simply add triggers on server deletion to set the ticket's server_id to null. I don't have the time for the moment but if you want to PR you're welcome ;)

Bencor29 commented 5 years ago

Original incorrect file: https://github.com/Bencor29/pterodactyl-panel-module-support/blob/master/database/migrations/2019_08_11_141118_create_tickets_table.php

Do to list:

Bencor29 commented 5 years ago

Update is available https://github.com/Bencor29/pterodactyl-panel-module-support/releases/tag/v0.7.15-p0.0.2