From cf672f12a237339d903b509f159833ce3a863844 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Fri, 25 Nov 2011 10:40:34 +0100 Subject: [PATCH] Rename database to use LibrePlan in its name FEA: ItEr75S03CommunityMaterial --- HACKING | 42 +++++++++---------- ...howto-create-a-new-report-in-libreplan.rst | 6 +-- .../howto-develop-a-use-case-in-libreplan.rst | 6 +-- doc/src/technical/howto-install-libreplan.txt | 12 +++--- pom.xml | 8 ++-- 5 files changed, 37 insertions(+), 37 deletions(-) diff --git a/HACKING b/HACKING index 42b0e7a94..c7d12140b 100644 --- a/HACKING +++ b/HACKING @@ -64,11 +64,11 @@ Debian/Ubuntu * Use SQL sentences:: - CREATE DATABASE navaldev; - CREATE DATABASE navaldevtest; - CREATE USER naval WITH PASSWORD 'naval'; - GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval; - GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval; + CREATE DATABASE libreplandev; + CREATE DATABASE libreplandevtest; + CREATE USER libreplan WITH PASSWORD 'libreplan'; + GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan; + GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan; * Download source code:: @@ -103,11 +103,11 @@ Fedora * Use SQL sentences:: - CREATE DATABASE navaldev; - CREATE DATABASE navaldevtest; - CREATE USER naval WITH PASSWORD 'naval'; - GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval; - GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval; + CREATE DATABASE libreplandev; + CREATE DATABASE libreplandevtest; + CREATE USER libreplan WITH PASSWORD 'libreplan'; + GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan; + GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan; * Set ``postgres`` user password:: @@ -163,11 +163,11 @@ openSUSE * Use SQL sentences:: - CREATE DATABASE navaldev; - CREATE DATABASE navaldevtest; - CREATE USER naval WITH PASSWORD 'naval'; - GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval; - GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval; + CREATE DATABASE libreplandev; + CREATE DATABASE libreplandevtest; + CREATE USER libreplan WITH PASSWORD 'libreplan'; + GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan; + GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan; * Set ``postgres`` user password:: @@ -275,11 +275,11 @@ profiles defined in ``pom.xml`` of business and webapp modules). * *dev* - Development environment (default) - It uses databases ``navaldev`` and ``navaldevtest``. + It uses databases ``libreplandev`` and ``libreplandevtest``. * *prod* - Production environment - Unlike *dev* it uses database ``navalprod`` and `navalprodtest``. + Unlike *dev* it uses database ``libreplanprod`` and `libreplanprodtest``. It is needed to use it in combination with *postgresql* or *mysql* profiles. @@ -361,10 +361,10 @@ For MySQL users here are specific instructions. * SQL sentences to create database:: - CREATE DATABASE navaldev; - CREATE DATABASE navaldevtest; - GRANT ALL ON navaldev.* to 'naval'@'localhost' identified by 'naval'; - GRANT ALL ON navaldevtest.* to 'naval'@'localhost' identified by 'naval'; + CREATE DATABASE libreplandev; + CREATE DATABASE libreplandevtest; + GRANT ALL ON libreplandev.* to 'libreplan'@'localhost' identified by 'libreplan'; + GRANT ALL ON libreplandevtest.* to 'libreplan'@'localhost' identified by 'libreplan'; * Compile project:: diff --git a/doc/src/technical/howto-create-a-new-report-in-libreplan.rst b/doc/src/technical/howto-create-a-new-report-in-libreplan.rst index 9686d4d18..076dd7163 100644 --- a/doc/src/technical/howto-create-a-new-report-in-libreplan.rst +++ b/doc/src/technical/howto-create-a-new-report-in-libreplan.rst @@ -44,9 +44,9 @@ work as ``.zul`` page still does not exist. If you want to run LibrePlan in development mode you need to follow the next instructions: - * Create a PostgreSQL database called ``navaldev`` with permissions for a - user ``naval`` with password ``naval`` (see ``INSTALL`` file for other - databases and more info). + * Create a PostgreSQL database called ``libreplandev`` with permissions for a + user ``libreplan`` with password ``libreplan`` (see ``INSTALL`` file for + other databases and more info). * Compile LibrePlan with the following command from project root folder:: diff --git a/doc/src/technical/howto-develop-a-use-case-in-libreplan.rst b/doc/src/technical/howto-develop-a-use-case-in-libreplan.rst index 771bc35fa..273884d20 100644 --- a/doc/src/technical/howto-develop-a-use-case-in-libreplan.rst +++ b/doc/src/technical/howto-develop-a-use-case-in-libreplan.rst @@ -82,9 +82,9 @@ this behaviour and use it in all the tasks they want. If you want to run LibrePlan in development mode you need to follow the next instructions: - * Create a PostgreSQL database called ``navaldev`` with permissions for a - user ``naval`` with password ``naval`` (see ``HACKING`` file for other - databases and more info). + * Create a PostgreSQL database called ``libreplandev`` with permissions for a + user ``libreplan`` with password ``libreplan`` (see ``HACKING`` file for + other databases and more info). * Compile LibrePlan with the following command from project root folder:: diff --git a/doc/src/technical/howto-install-libreplan.txt b/doc/src/technical/howto-install-libreplan.txt index 877ff6d5e..b5dd3b010 100644 --- a/doc/src/technical/howto-install-libreplan.txt +++ b/doc/src/technical/howto-install-libreplan.txt @@ -5,9 +5,9 @@ $ sudo apt-get install postgresql $ sudo su -c "psql" postgres <----------------- Executar os seguintes comandos SQL ---------- -create database navaldev; -create user naval with password 'naval'; -grant all privileges on database navaldev to naval; +create database libreplandev; +create user libreplan with password 'libreplan'; +grant all privileges on database libreplandev to libreplan; \q ------------------------------------------------------------------ @@ -40,9 +40,9 @@ para permitir o acceso a base de datos + url="jdbc:postgresql://localhost/libreplandev"/> ... ---------------------- --------------------------------------- @@ -96,4 +96,4 @@ Neste intre a aplicación debería estar accesible en : http://localhost:8080/li ------------------------------------------------------------------------ Se quixeramos facer un volcado da base de datos so precisariamos empregar o seguinte comando, isto non é necesario para a instalación. -$ pg_dump -h localhost -U naval -c -F p -v -f bdxestionproducion.dump navaldev +$ pg_dump -h localhost -U libreplan -c -F p -v -f bdxestionproducion.dump libreplandev diff --git a/pom.xml b/pom.xml index 68d0fae4d..eecb51511 100644 --- a/pom.xml +++ b/pom.xml @@ -28,8 +28,8 @@ --> - naval - naval + libreplan + libreplan jdbc/libreplan-ds ${dataSource.user} ${dataSource.password} @@ -113,7 +113,7 @@ 8.3-603.jdbc4 org.postgresql.Driver - jdbc:postgresql://localhost/naval${libreplan.mode} + jdbc:postgresql://localhost/libreplan${libreplan.mode} ${dataSource.url}test org.hibernate.dialect.PostgreSQLDialect @@ -131,7 +131,7 @@ 5.0.5 com.mysql.jdbc.Driver - jdbc:mysql://localhost/naval${libreplan.mode} + jdbc:mysql://localhost/libreplan${libreplan.mode} ${dataSource.url}test org.hibernate.dialect.MySQL5InnoDBDialect