Fixes for webgui and more native gui development
This commit is contained in:
+2
-1
@@ -222,6 +222,7 @@ CREATE TABLE equipment (
|
||||
CREATE TABLE inventory (
|
||||
invid int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
invname varchar(80) NOT NULL,
|
||||
icat tinyint(3) DEFAULT NULL,
|
||||
conttype enum('storage','box') NOT NULL DEFAULT 'storage',
|
||||
sid smallint(6) UNSIGNED DEFAULT NULL,
|
||||
boxid smallint(6) UNSIGNED DEFAULT NULL,
|
||||
@@ -470,7 +471,7 @@ CREATE TABLE note (
|
||||
annotation text NOT NULL,
|
||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
created_by smallint(6) DEFAULT NULL,
|
||||
PRIMARY KEY (noteid)
|
||||
PRIMARY KEY (noteid),
|
||||
FOREIGN KEY fk_note_user (created_by)
|
||||
REFERENCES user(userid)
|
||||
ON DELETE RESTRICT
|
||||
|
||||
+3
-2
@@ -14,7 +14,7 @@ INSERT INTO user (userid, login, pass, displayname, role) VALUES
|
||||
INSERT INTO settings (userid, sno, valint, valstr) VALUES
|
||||
(0, 0, 1, NULL), -- Database schema version
|
||||
(0, 1, 0, NULL), -- No vessel assignment to SYSTEM
|
||||
(1, 1, 0), NULL, -- No vessel assignment to user "captain"
|
||||
(1, 1, 0, NULL), -- No vessel assignment to user "captain"
|
||||
(0, 20, 1280, NULL), -- Image width limit
|
||||
(0, 21, 1024, NULL), -- Image height limit
|
||||
(0, 4, NULL, '€'), -- Currency symbol
|
||||
@@ -72,7 +72,8 @@ INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
|
||||
(0, 9, 'Kistentypen'),
|
||||
(0, 10, 'Sicherungsblöcke'), -- fuse locations
|
||||
(0, 11, 'Kabeltypen'),
|
||||
(0, 12, 'Technische Kabel-Bezeichnung');
|
||||
(0, 12, 'Technische Kabel-Bezeichnung'),
|
||||
(0, 13, 'Inventarkategorien');
|
||||
|
||||
INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
|
||||
(2, 1, 'Lieferant', 'fixed'),
|
||||
|
||||
+3
-2
@@ -14,7 +14,7 @@ INSERT INTO user (userid, login, pass, displayname, role) VALUES
|
||||
INSERT INTO settings (userid, sno, valint, valstr) VALUES
|
||||
(0, 0, 1, NULL), -- Database schema version
|
||||
(0, 1, 0, NULL), -- No vessel assignment to SYSTEM
|
||||
(1, 1, 0), NULL, -- No vessel assignment to user "captain"
|
||||
(1, 1, 0, NULL), -- No vessel assignment to user "captain"
|
||||
(0, 20, 1280, NULL), -- Image width limit
|
||||
(0, 21, 1024, NULL), -- Image height limit
|
||||
(0, 4, NULL, '€'), -- Currency symbol
|
||||
@@ -71,7 +71,8 @@ INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
|
||||
(0, 9, 'box types'),
|
||||
(0, 10, 'fuse blocks'),
|
||||
(0, 11, 'cable types'),
|
||||
(0, 12, 'cable desc. technical');
|
||||
(0, 12, 'cable desc. technical'),
|
||||
(0, 13, 'inventory category');
|
||||
|
||||
INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
|
||||
(2, 1, 'Supplier', 'fixed'),
|
||||
|
||||
Reference in New Issue
Block a user