Database Initialization

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/*.env

  • New schema changes live in global database/migrations/ and extend BaseMigration

  • Run php artisan migrate and legacy module migrations where required

  • Use php artisan test:setup-databases for 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.

Comments