Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a table on the database to store configuration #121

Closed
sIldefonsoRR opened this issue Oct 14, 2024 · 1 comment · Fixed by #122
Closed

Create a table on the database to store configuration #121

sIldefonsoRR opened this issue Oct 14, 2024 · 1 comment · Fixed by #122
Assignees

Comments

@sIldefonsoRR
Copy link

The idea is to have a table on the database to store the configurations.
This table will allow the change of a configuration without a new deployment.

Here is an example of a configuration table:
`CREATE TABLE app_config (
id SERIAL NOT NULL PRIMARY KEY,
config_key VARCHAR(100) NOT NULL,
config_value TEXT,
config_type VARCHAR(50),
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT unique_config_key UNIQUE (config_key)
);

CREATE INDEX app_config_config_key_idx ON web_config(config_key);`

@jpb18
Copy link
Contributor

jpb18 commented Oct 15, 2024

We've talked on the daily and decided to add django, create the tables and enable the admin section.

@jpb18 jpb18 self-assigned this Oct 15, 2024
@jpb18 jpb18 linked a pull request Oct 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants