mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Implements #4434 The reason for the order can now be viewed in the cargo control application Calculate the shuttle fee per order It is now possible to pay for orders that have been approved by cargo before they are shipped to the station A mainfest spawns in the crates Schema Changes: The supplier, path and amount columns have been retired and are no longer used Instead the following columns will be used: supplier - the short name of the supplier that will be used price - the price for the items items - the items and their variables If you are storing the cargo items in the SQL DB, then you dont have to do anything. They will be migrated automatically to the new format If you are storing the cargo items in JSON Files then you have to rewrite the files to adhere to the new format. A example file of the new format is included
16 lines
826 B
SQL
16 lines
826 B
SQL
--
|
|
-- Changes the Cargo Schema to allow grouping multiple items into one virtual item
|
|
-- Implemented in #4435
|
|
--
|
|
|
|
ALTER TABLE `ss13_cargo_items`
|
|
DROP INDEX `path`;
|
|
|
|
ALTER TABLE `ss13_cargo_items`
|
|
ADD COLUMN `supplier` VARCHAR(50) NOT NULL DEFAULT 'nt' AFTER `name`,
|
|
ADD COLUMN `price` INT(11) NOT NULL AFTER `categories`,
|
|
ADD COLUMN `items` TEXT NULL COMMENT 'JSON list of all the items and their attributes' AFTER `price`,
|
|
CHANGE COLUMN `amount` `item_mul` INT(10) UNSIGNED NOT NULL DEFAULT '1' AFTER `items`,
|
|
CHANGE COLUMN `access` `access` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `item_mul`,
|
|
CHANGE COLUMN `suppliers` `suppliers_old` TEXT NULL COMMENT 'JSON list of suppliers' COLLATE 'utf8_bin' AFTER `deleted_at`,
|
|
CHANGE COLUMN `path` `path_old` VARCHAR(150) NOT NULL COLLATE 'utf8_bin' AFTER `suppliers_old`; |