Skip to content

Commit b33aa7c

Browse files
alnutilesimonhamp
andauthored
Update docs to explain version update needed to trigger migrations in app update (#34)
* note that a version update is needed * Versioning --------- Co-authored-by: Simon Hamp <[email protected]>
1 parent 13b56df commit b33aa7c

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

resources/views/docs/1/publishing/building.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ your app to provide automatic updates.
1717
You should build your application for each platform you intend to support and test it on each platform _before_
1818
publishing to make sure that everything works as expected.
1919

20+
## Versioning
21+
22+
For every build you create, you should change the version of your application in your app's `config/nativephp.php` file.
23+
24+
This can be any format you choose, but you may find that a simple incrementing build number is the easiest to manage.
25+
26+
**Migrations will only run on the user's machine if the version reference is _different_ to the currently-installed version.**
27+
28+
You may choose to have a different version number that uses a different scheme (e.g. SemVer) that you use for user-facing
29+
releases.
30+
2031
## Running a build
2132

2233
```shell

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
resolved "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz"
88
integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==
99

10-
"@esbuild/win32[email protected]":
10+
"@esbuild/linux[email protected]":
1111
version "0.17.19"
12-
resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz"
13-
integrity sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==
12+
resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz"
13+
integrity sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==
1414

1515
"@jridgewell/gen-mapping@^0.3.2":
1616
version "0.3.3"

0 commit comments

Comments
 (0)