Initial commit - realms platform
This commit is contained in:
parent
c590ab6d18
commit
c717c3751c
234 changed files with 74103 additions and 15231 deletions
7
database/00-create-nakama-db.sql
Normal file
7
database/00-create-nakama-db.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Create Nakama database for game server
|
||||
-- This runs before init.sql (alphabetically sorted)
|
||||
-- Note: This runs in the context of the postgres database
|
||||
|
||||
-- Create the nakama database if it doesn't exist
|
||||
SELECT 'CREATE DATABASE nakama'
|
||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'nakama')\gexec
|
||||
11
database/00-init-nakama.sh
Normal file
11
database/00-init-nakama.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
# Create Nakama database for game server
|
||||
# This script runs before init.sql (alphabetically)
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "postgres" <<-EOSQL
|
||||
CREATE DATABASE nakama;
|
||||
GRANT ALL PRIVILEGES ON DATABASE nakama TO $POSTGRES_USER;
|
||||
EOSQL
|
||||
|
||||
echo "Nakama database created successfully"
|
||||
1096
database/init.sql
1096
database/init.sql
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue