You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);`
The text was updated successfully, but these errors were encountered:
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);`
The text was updated successfully, but these errors were encountered: