metarhia/metasql

Auto create Server

AliusDieMorietur opened this issue · 1 comments

We need await pool.query( INSERT INTO "Server" ( "id", "name", "suffix", "ip", "ports" ) VALUES ( $1, 'mylovelyserver', 'suffix', '127.0.0.1', '{"ports": [8001, 8002]}' ), [serverId] );
on db creation

This should be done from deploy script not a part of model generation