Emmanuel BENOîT
e50775ec76
* The main loader script has been updated to generate the list of files it needs to load automatically. As a consequence, files that contained manually-maintained lists of scripts have been removed, and definition directories have been renamed accordingly. * PostgreSQL extension loading and configuration has been moved to a separate script to be loaded automatically in the main transaction. * Data and function definition scripts that had the -data or -functions suffix have been renamed (the suffix is unnecessary). * Unit tests have been reorganised to follow the definition's structure. * Documentation has been improved
46 lines
No EOL
987 B
SQL
46 lines
No EOL
987 B
SQL
-- LegacyWorlds Beta 6
|
|
-- PostgreSQL database scripts
|
|
--
|
|
-- Creates schemas
|
|
--
|
|
-- Copyright(C) 2004-2010, DeepClone Development
|
|
-- --------------------------------------------------------
|
|
|
|
CREATE SCHEMA admin;
|
|
GRANT USAGE ON SCHEMA admin TO :dbuser;
|
|
|
|
CREATE SCHEMA battles;
|
|
GRANT USAGE ON SCHEMA battles TO :dbuser;
|
|
|
|
CREATE SCHEMA bugs;
|
|
GRANT USAGE ON SCHEMA bugs TO :dbuser;
|
|
|
|
CREATE SCHEMA defs;
|
|
GRANT USAGE ON SCHEMA defs TO :dbuser;
|
|
|
|
CREATE SCHEMA events;
|
|
GRANT USAGE ON SCHEMA events TO :dbuser;
|
|
|
|
CREATE SCHEMA emp;
|
|
GRANT USAGE ON SCHEMA emp TO :dbuser;
|
|
|
|
CREATE SCHEMA fleets;
|
|
GRANT USAGE ON SCHEMA fleets TO :dbuser;
|
|
|
|
CREATE SCHEMA msgs;
|
|
GRANT USAGE ON SCHEMA msgs TO :dbuser;
|
|
|
|
CREATE SCHEMA naming;
|
|
GRANT USAGE ON SCHEMA naming TO :dbuser;
|
|
|
|
CREATE SCHEMA sys;
|
|
GRANT USAGE ON SCHEMA sys TO :dbuser;
|
|
|
|
CREATE SCHEMA tech;
|
|
GRANT USAGE ON SCHEMA tech TO :dbuser;
|
|
|
|
CREATE SCHEMA users;
|
|
GRANT USAGE ON SCHEMA users TO :dbuser;
|
|
|
|
CREATE SCHEMA verse;
|
|
GRANT USAGE ON SCHEMA verse TO :dbuser; |