-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Added commands to docs
Showing
3 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
introduced_at: 0.10.2 | ||
--- | ||
# Export Entity Types (Data Model) | ||
|
||
Copies all entity types and their related data from the regular database (`DEFAULT_DB`) to a different database (`TRANSFER_DB`) based on a single entity of the `DEFAULT_DB` that needs to be specified using the `--entity` parameter. | ||
|
||
The program will collect all data and requires a user confirmation before changing any data inside the transfer database. The data can be evaluated in the `transfer.log` that is located at `storage/logs/transfer.log`. | ||
|
||
This will transfer | ||
|
||
+ Entity Types | ||
+ Entity Type Relations | ||
+ Attributes | ||
+ Entity Attribute Relations | ||
+ Thesaurus Concepts | ||
+ Thesaurus Concept Relations (broader/narrower) | ||
+ Thesaurus Labels (of the languages 'en' and 'de') | ||
|
||
|
||
## Example | ||
|
||
``` | ||
php artisan app:export-types --entity=31 | ||
``` | ||
|
||
## Requirements | ||
|
||
The `TRANSFER_DB` need to be defined inside the .env file: | ||
|
||
``` | ||
DB_TRANSFER_CONNECTION=pgsql | ||
DB_TRANSFER_HOST=localhost | ||
DB_TRANSFER_PORT=5432 | ||
DB_TRANSFER_DATABASE=transfer-db | ||
DB_TRANSFER_USERNAME=spacialist_user | ||
DB_TRANSFER_PASSWORD=spacialist_user | ||
``` | ||
|
||
## Parameters | ||
|
||
`-e, --entity` Define the entity that should be the basis for the data model export. That entity and all it's child entities will be scanned to collect all related information that will be transfered to the `TRANSFER_DB`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
introduced_at: 0.10.2 | ||
--- | ||
# Refresh Testing | ||
|
||
Refreshes the database and optionally runs all tests. | ||
|
||
## Example | ||
|
||
``` | ||
php artisan app:test | ||
``` | ||
|
||
## Requirements | ||
|
||
The application must have a `.env.testing` file setup. | ||
|
||
## Parameters | ||
|
||
`-r, --refresh` Must be set to run a migration and the DemoSeeder on the database. (Does a config:clear to prevent running the migration on the main db). | ||
|
||
`-s, --skip` Skips the testing process. |