feat: add client sla balances report totals and branding settings
This commit is contained in:
@@ -32,6 +32,14 @@ CREATE TABLE IF NOT EXISTS users (
|
||||
FOREIGN KEY (role_id) REFERENCES roles(id)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS app_settings (
|
||||
setting_key VARCHAR(80) PRIMARY KEY,
|
||||
setting_value TEXT NULL,
|
||||
updated_by BIGINT UNSIGNED NULL,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE SET NULL
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS clients (
|
||||
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(190) NOT NULL,
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
-- JOBcard additive upgrade for installations created before the current schema.
|
||||
CREATE TABLE IF NOT EXISTS app_settings (
|
||||
setting_key VARCHAR(80) PRIMARY KEY,
|
||||
setting_value TEXT NULL,
|
||||
updated_by BIGINT UNSIGNED NULL,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE SET NULL
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
-- Take a database backup first. Run with the target database selected:
|
||||
-- mysql --default-character-set=utf8mb4 -u USER -p DATABASE < database/upgrade.sql
|
||||
-- Resolve duplicate SLA rows before adding the unique client constraint.
|
||||
|
||||
Reference in New Issue
Block a user