Database Initialization
1. Database Initialization
The primary application database is PostgreSQL. The former MariaDB root/password shell example is obsolete.
1.1. Install behavior
The approved RPM/install hooks initialize PostgreSQL, create the configured application/test schemas as needed, and run Laravel migrations.
1.2. Contributor view
Connection settings come from
/etc/nmsprime/env/*.envNew schema changes live in global
database/migrations/and extendBaseMigrationRun
php artisan migrateand legacy module migrations where requiredUse
php artisan test:setup-databasesfor test databases
1.3. Security
Do not publish database passwords or use command-line password generation examples in public docs. Restrict network access and use least-privilege roles.
In case you want to test installation (like migrations or test if a new installation would work on a still used system), you could switch databases in /etc/nmsprime/env/*... and then run