[PR #1090] [MERGED] [FIX]: Update setup_database.php to load environment before getting config object #1259

Closed
opened 2026-02-25 21:37:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1090
Author: @Yannick243
Created: 6/15/2024
Status: Merged
Merged: 6/20/2024
Merged by: @josaphatim

Base: masterHead: setup-database-script


📝 Commits (1)

  • dfe2002 [FIX]: Update setup_database.php to load environment before getting config object

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 scripts/setup_database.php (+4 -0)

📄 Description

Pullrequest

When trying to run the script php ./scripts/setup_database.php, the system is using the default config values and not loading values from the .env file.
This script is also being used by docker when it is trying to setup database tables

https://github.com/cypht-org/cypht/issues/1089


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/1090 **Author:** [@Yannick243](https://github.com/Yannick243) **Created:** 6/15/2024 **Status:** ✅ Merged **Merged:** 6/20/2024 **Merged by:** [@josaphatim](https://github.com/josaphatim) **Base:** `master` ← **Head:** `setup-database-script` --- ### 📝 Commits (1) - [`dfe2002`](https://github.com/cypht-org/cypht/commit/dfe200232942d549b58216996792c028cd231db7) [FIX]: Update setup_database.php to load environment before getting config object ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/setup_database.php` (+4 -0) </details> ### 📄 Description ## Pullrequest When trying to run the script `php ./scripts/setup_database.php`, the system is using the default config values and not loading values from the `.env` file. This script is also being used by docker when it is trying to setup database tables ### Related Issue [https://github.com/cypht-org/cypht/issues/1089](https://github.com/cypht-org/cypht/issues/1089) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:37:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#1259
No description provided.