Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 5 lines (4 sloc) 321 Bytes
echo 'DROP DATABASE copen;' | psql template1
echo 'CREATE DATABASE copen;' | psql template1
echo 'CREATE TABLE games (game_number SERIAL PRIMARY KEY, file TEXT, number_in_file INT, result INT);' | psql copen
echo 'CREATE TABLE copen (position BYTEA, move BYTEA, game_number INT REFERENCES games, ply INT) ;' | psql copen