Add navigation in sidebar
This commit is contained in:
41
migrations/20251130_191100_add_table_dashboards.sql
Normal file
41
migrations/20251130_191100_add_table_dashboards.sql
Normal file
@@ -0,0 +1,41 @@
|
||||
begin;
|
||||
|
||||
create table if not exists dashboards (
|
||||
dash_id integer unique not null,
|
||||
dash_text text not null,
|
||||
dash_description text,
|
||||
group_id integer not null,
|
||||
active integer not null default 1,
|
||||
date_create TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
id integer primary key autoincrement
|
||||
);
|
||||
|
||||
create table if not exists groups (
|
||||
group_id text unique not null,
|
||||
group_text text not null,
|
||||
group_description text,
|
||||
active integer not null default 1,
|
||||
date_create TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
id integer primary key autoincrement
|
||||
);
|
||||
|
||||
create table if not exists roles (
|
||||
role_id integer unique not null,
|
||||
role_text text not null,
|
||||
role_description text,
|
||||
active integer not null default 1,
|
||||
date_create TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
id integer primary key autoincrement
|
||||
);
|
||||
|
||||
create table if not exists permissions (
|
||||
role_id integer unique not null,
|
||||
dash_id integer unique not null,
|
||||
active integer not null default 1,
|
||||
date_create TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
id integer primary key autoincrement
|
||||
);
|
||||
|
||||
INSERT INTO schema_version (version) VALUES ('20251130_191100_add_table_dashboards');
|
||||
|
||||
COMMIT;
|
||||
14
migrations/20251130_200000_add_col_area.sql
Normal file
14
migrations/20251130_200000_add_col_area.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
begin;
|
||||
|
||||
alter table dashboards
|
||||
add column zgrp1 text;
|
||||
|
||||
alter table dashboards
|
||||
add column zgrp2 text;
|
||||
|
||||
alter table dashboards
|
||||
add column zgrp3 text;
|
||||
|
||||
INSERT INTO schema_version (version) VALUES ('20251130_200000_add_col_area');
|
||||
|
||||
COMMIT;
|
||||
11
migrations/20251130_200600_add_col_order.sql
Normal file
11
migrations/20251130_200600_add_col_order.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
begin;
|
||||
|
||||
alter table dashboards
|
||||
add column order_no integer default 0;
|
||||
|
||||
alter table groups
|
||||
add column order_no integer default 0;
|
||||
|
||||
INSERT INTO schema_version (version) VALUES ('20251130_200600_add_col_order');
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user