Add a approval step to cargo_items (#4639)

Expands the cargo table to require the approval of items before they are displayed on the server, enabling the creation of a module in the web interface.
This commit is contained in:
Werner
2018-04-29 17:35:06 +03:00
committed by Erki
parent d27af2445e
commit ed504cbe20
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
--
-- Combines the ss13_admin and ss13_player table
--
ALTER TABLE `ss13_cargo_items`
ADD COLUMN `created_by` VARCHAR(50) NULL DEFAULT NULL AFTER `order_by`,
ADD COLUMN `approved_by` VARCHAR(50) NULL DEFAULT NULL AFTER `created_by`,
ADD COLUMN `approved_at` DATETIME NULL DEFAULT NULL AFTER `created_at`;
UPDATE ss13_cargo_items SET approved_at = NOW()