This is where the schema is managed for Scavinators central database. It is managed using tern, and so in order to use it you'll need to get yourself a copy.
- Create a postgres database (named
scavinatorin the example config) and a user. Set your user as the owner of the database usingALTER DATABASE $YOUR_DATABASE OWNER TO $YOUR_USER. - Copy
migrations/tern.sample.conftomigrations/tern.confand set database, username, and password accordingly. - Create application database users for the website and the discord bot, and put their usernames in the
main_role(for website) andintegration_rolefields intern.conf. - Enter the
migrationsdirectory and run the migrations usingtern migrate - Done!
After adding migrations, update the schema with pg_dump --schema-only --no-owner -x -d $DATABASE > schema.sql.