mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 19:08:53 +03:00
[PR #896] [CLOSED] PostgreSQL Support #1042
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/896
Author: @PseudoResonance
Created: 1/8/2025
Status: ❌ Closed
Base:
main← Head:support-postgresql📝 Commits (8)
fbb70f9PostgreSQL database support03abc06Address GitHub actions results1a8a6f6Address GitHub tests/lintb8e343cCorrect auto-format/filename/composer dependenciesbe8b7c0Revert "PostgreSQL database support" migrations104826eAdd dumped PostgreSQL schemad22244cRevert remaining migrations754a28dPartially remove DynamicDatabaseConnection and define all database defaults in enum class📊 Changes
22 files changed (+3177 additions, -252 deletions)
View changed files
📝
.github/workflows/build.yaml(+3 -3)📝
.github/workflows/ci.yaml(+3 -3)📝
.github/workflows/lint.yaml(+2 -2)📝
.github/workflows/release.yaml(+1 -1)📝
Dockerfile(+2 -2)📝
app/Console/Commands/Environment/DatabaseSettingsCommand.php(+73 -134)➕
app/Enums/DatabaseDriver.php(+124 -0)📝
app/Extensions/DynamicDatabaseConnection.php(+5 -11)📝
app/Filament/Admin/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php(+15 -2)📝
app/Filament/Admin/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php(+2 -2)📝
app/Livewire/Installer/Steps/DatabaseStep.php(+26 -34)📝
app/Livewire/Installer/Steps/RequirementsStep.php(+1 -0)📝
app/Models/Database.php(+107 -20)📝
app/Models/DatabaseHost.php(+11 -1)📝
app/Services/Databases/DatabaseManagementService.php(+1 -0)📝
app/Services/Databases/DatabasePasswordService.php(+13 -4)📝
app/Services/Databases/Hosts/HostCreationService.php(+1 -0)📝
app/Transformers/Api/Client/DatabaseTransformer.php(+1 -0)📝
config/database.php(+52 -33)📝
database/Factories/DatabaseHostFactory.php(+1 -0)...and 2 more files
📄 Description
Adds PostgreSQL as an alternative database option. Additionally, adds configurable driver option to the DynamicDatabaseConnection part.
The database driver type is saved in a new column
driverof the DatabaseHost, allowing for potentially other databases in the future if desired.I've tried to test everything I could think of, but please let me know if there's anything I missed, or if something should be adjusted. I want this to be as minimal of a maintenance burden as possible, but I do really want Postgres support because there's much better support for running it in a Kubernetes HA setup with CloudnativePG.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.