|
| 1 | +--- |
| 2 | +title: it-drugs - Update |
| 3 | +description: How to update the it-drugs scripts |
| 4 | +--- |
| 5 | + |
| 6 | +import { Steps } from 'nextra/components' |
| 7 | +import ExternLink from '@components/ExternLink' |
| 8 | +import { Callout } from '@components/Callout' |
| 9 | +import { IconBrandGithub } from '@tabler/icons-react' |
| 10 | + |
| 11 | +## v.1.2.4 to 1.3.x |
| 12 | + |
| 13 | +<Callout type="info"> |
| 14 | +If you have already added custom items to the script, it is worth making a backup of these and adapting them to the new version later. |
| 15 | +</Callout> |
| 16 | + |
| 17 | +<Steps> |
| 18 | +### Stop your server |
| 19 | + |
| 20 | +### Delete Files |
| 21 | + |
| 22 | +Delete all it-drugs files and inventory items from your server. |
| 23 | + |
| 24 | +### Execute SQL Statement |
| 25 | +```sql |
| 26 | +-- Delete the drug_plants table |
| 27 | +DROP TABLE IF EXISTS drug_plants; |
| 28 | +-- Delete the drug_processing table |
| 29 | +DROP TABLE IF EXISTS drug_processing; |
| 30 | +``` |
| 31 | + |
| 32 | +### Follow the install guide |
| 33 | +<ExternLink href="https://docs.it-scripts.com/it-drugs/installation"></ExternLink> |
| 34 | + |
| 35 | + |
| 36 | +</Steps> |
| 37 | + |
| 38 | +## v1.3.x to 1.3.x |
| 39 | +<Steps> |
| 40 | +### Stop your server |
| 41 | + |
| 42 | +### Replace files |
| 43 | + |
| 44 | +Replace all files on your server except for config.lua with the new script files. If you have not edited the config.lua you can also replace this file |
| 45 | + |
| 46 | +### Check Config.lua changes |
| 47 | +<ExternLink href="https://github.com/it-scripts/it-drugs/compare/v1.3.0beta5...v1.3.0beta6" manualTitle="Github | Comparing changes" icon={<IconBrandGithub />} ></ExternLink> |
| 48 | + |
| 49 | +<Callout type="info"> |
| 50 | + |
| 51 | +When comparing, please make sure that the two correct versions are selected: <br/> |
| 52 | +**Left:** Your version <br/> |
| 53 | +**Right:** The version you want to update to |
| 54 | + |
| 55 | +Then simply search with config.lua and adapt your config file to the latest one |
| 56 | +</Callout> |
| 57 | + |
| 58 | +</Steps> |
0 commit comments