Revised database initialization scripts to better handle Postgres and Oracle environments, introduced schema-specific configurations for Oracle EFCore, and cleaned up obsolete or redundant entity model setup. Streamlined project structure by relocating and renaming files for SQLite and Oracle EFCore setups, improving maintainability and readability.
9 lines
316 B
Bash
Executable file
9 lines
316 B
Bash
Executable file
echo "Starting database initialization"
|
|
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
CREATE USER tracelens WITH PASSWORD 'tracelenspass';
|
|
CREATE DATABASE tracelens;
|
|
GRANT ALL PRIVILEGES ON DATABASE tracelens TO tracelens;
|
|
EOSQL
|
|
|
|
echo "Database initialization completed" |