28 |
30 Mar 06 |
gregory |
1 |
/* |
28 |
30 Mar 06 |
gregory |
$Id$ |
28 |
30 Mar 06 |
gregory |
3 |
|
1916 |
31 Aug 07 |
jari |
Copyright (C) 2006 Gregory Vincic, Jari Hakkinen |
28 |
30 Mar 06 |
gregory |
5 |
|
441 |
10 Aug 06 |
jari |
This file is part of Proteios. |
441 |
10 Aug 06 |
jari |
Available at http://www.proteios.org/ |
28 |
30 Mar 06 |
gregory |
8 |
|
441 |
10 Aug 06 |
jari |
Proteios is free software; you can redistribute it and/or |
28 |
30 Mar 06 |
gregory |
modify it under the terms of the GNU General Public License |
28 |
30 Mar 06 |
gregory |
as published by the Free Software Foundation; either version 2 |
28 |
30 Mar 06 |
gregory |
of the License, or (at your option) any later version. |
28 |
30 Mar 06 |
gregory |
13 |
|
441 |
10 Aug 06 |
jari |
Proteios is distributed in the hope that it will be useful, |
28 |
30 Mar 06 |
gregory |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
28 |
30 Mar 06 |
gregory |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
28 |
30 Mar 06 |
gregory |
GNU General Public License for more details. |
28 |
30 Mar 06 |
gregory |
18 |
|
28 |
30 Mar 06 |
gregory |
You should have received a copy of the GNU General Public License |
28 |
30 Mar 06 |
gregory |
along with this program; if not, write to the Free Software |
28 |
30 Mar 06 |
gregory |
Foundation, Inc., 59 Temple Place - Suite 330, |
28 |
30 Mar 06 |
gregory |
Boston, MA 02111-1307, USA. |
28 |
30 Mar 06 |
gregory |
23 |
|
28 |
30 Mar 06 |
gregory |
24 |
============================================================== |
28 |
30 Mar 06 |
gregory |
25 |
|
28 |
30 Mar 06 |
gregory |
A simple sequence of SQL commands that create a Base2 database |
28 |
30 Mar 06 |
gregory |
for the PostgreSQL database. |
28 |
30 Mar 06 |
gregory |
28 |
|
28 |
30 Mar 06 |
gregory |
This file should be executed by the psql command-line tool: |
28 |
30 Mar 06 |
gregory |
30 |
|
28 |
30 Mar 06 |
gregory |
psql -f createdb.postgres.sql template1 |
28 |
30 Mar 06 |
gregory |
32 |
|
28 |
30 Mar 06 |
gregory |
Before executing this file it is a good idea to change the |
28 |
30 Mar 06 |
gregory |
default password to something else. Do not forget to |
28 |
30 Mar 06 |
gregory |
make the corresponding change in your base.config file. |
28 |
30 Mar 06 |
gregory |
36 |
|
28 |
30 Mar 06 |
gregory |
It is also possible to change the username (base2user) |
28 |
30 Mar 06 |
gregory |
database name (base2) and schema name (dynamic) to something |
28 |
30 Mar 06 |
gregory |
else. If yo do, do not forget to make the corresponding changes |
28 |
30 Mar 06 |
gregory |
in your base.config file. |
28 |
30 Mar 06 |
gregory |
41 |
*/ |
28 |
30 Mar 06 |
gregory |
CREATE USER "base2user" PASSWORD 'password'; |
28 |
30 Mar 06 |
gregory |
CREATE DATABASE "base2" OWNER "base2user" ENCODING 'UNICODE'; |
28 |
30 Mar 06 |
gregory |
\c "base2" |
28 |
30 Mar 06 |
gregory |
CREATE SCHEMA "dynamic" AUTHORIZATION "base2user"; |