Database Package
New Database Package
- Either:
- Project type = Files: Add your database backup to the Files\Database directory.
- Project type = MaintainDatabase, HybridCloudComponents, ExtractFromDatabase: No actions required. A backup and a package is created from the database specified by DbConnectionString in Project.json.
- Open a PowerShell console.
In the PowerShell console, run:
PS C:\LS Retail\My Project> .\NewDatabasePackage.ps1 -Import
- If you provided the database backup yourself, a package will be created from the backup provided in the Files\Database directory.
- In other cases, the script will backup the specified database and create a database package.
Update Database Package
If you want to base new POS device installations of a new database, you can create a new database package.
- Open the script NewDatabasePackage.ps1 for editing.
- Find the version for the package and increment it, i.e.
Version = '1.1.0'
. - Perform the steps in the section above.
- Update the POS bundle with the new version.