Skip to content

Commit fc1a72f

Browse files
committed
Add update page
1 parent 50a652f commit fc1a72f

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

pages/it-drugs/_meta.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
}
77
},
88
"adjustments": "⚙️・Adjustments",
9-
"tipps-and-tricks": "😀・Tipps and Tricks"
9+
"tipps-and-tricks": "😀・Tipps and Tricks",
10+
"update": {
11+
"title": "📡・Update",
12+
"theme": {
13+
"footer": false
14+
}
15+
}
1016
}
1117

pages/it-drugs/update.mdx

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
![Github Comparing changes](/github_comparing_changes.png)
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>

public/github_comparing_changes.png

5.51 KB
Loading

0 commit comments

Comments
 (0)