[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1095] branches/1.2/UPGRADE



Revision: 1095
          http://svn.sourceforge.net/ledger-smb/?rev=1095&view=rev
Author:   einhverfr
Date:     2007-04-22 11:48:10 -0700 (Sun, 22 Apr 2007)

Log Message:
-----------
Committing David Bandel's corrections

Modified Paths:
--------------
    branches/1.2/UPGRADE

Modified: branches/1.2/UPGRADE
===================================================================
--- branches/1.2/UPGRADE	2007-04-22 01:38:46 UTC (rev 1094)
+++ branches/1.2/UPGRADE	2007-04-22 18:48:10 UTC (rev 1095)
@@ -2,7 +2,7 @@
 
 From LedgerSMB (1.1.1 or earlier) 
 or 
-SQL-Ledger (2.6.19 or earlier)
+SQL-Ledger (2.6.27 or earlier)
 
 This document contains information on how to upgrade from earlier versions of 
 LedgerSMB or SQL-Ledger.  This upgrade is a major revision and may not go 
@@ -61,10 +61,22 @@
   d) Run the SQL upgrade scripts in order starting with the one whose name
      begins with "Pg-upgrade-[version]" (each of these scripts will upgrade to
      the next database version which is also identified in the file name).
+     N.B.: use `ls -v` to see the scripts in version order and run them
+     in the order shown by this command.
+  e) If you have a problem running the scripts (errors due to ownership
+     or you just want to change ownership of the tables), connect to the
+     database as you did in c above and at the => prompt:
+     "/d"
+     You will see a list of all tables, sequences, triggers, etc.  After
+     creating a user (see the INSTALL file for details), you can change
+     ownership of the relation by running the following at the => prompt:
+     "ALTER TABLE|SEQUENCE|TRIGGER public.<relation_name> OWNER TO "new_owner";
+     Select the appropriate relation type and relation_name.
+     Rerun the upgrade scripts starting with the first one that failed.
 
-Note that this will create three tables that may not actually be used depending
-on your setup:  users, users_conf, and session.  In general if you have multiple
-datasets, these tables will only be used in one.
+Note that subpara d above will create three tables that may not actually be 
+used depending on your setup:  users, users_conf, and session.  In general if 
+you have multiple datasets, these tables will only be used in one.
 
 4)  Decide where to put the user/session management tables.  In general, we
 recommend as follows:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.