• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 1562

Show
Ignore:
Timestamp:
05/25/07 19:37:48 (18 months ago)
Author:
jmoore
Message:

#712 Initial update scripts from patch 1 to 4. See also #373

Location:
trunk
Files:
5 added
4 modified

  • components/common/build.xml (modified) (1 diff)
  • sql/README.txt (modified) (1 diff)
  • sql/VERSIONS.txt (modified) (1 diff)
  • sql/misc/macros.el (modified) (1 diff)
  • sql/psql/OMERO3__1__OMERO3__4__A_hibtool.sql (added)
  • sql/psql/OMERO3__1__OMERO3__4__B_apg.sql (added)
  • sql/psql/OMERO3__1__OMERO3__4__C_enums.sql (added)
  • sql/psql/OMERO3__1__data.sql (added)
  • sql/psql/OMERO3__1__schema.sql (added)

Legend:

Unmodified
Added
Removed
  • trunk/components/common/build.xml

    r1547 r1562  
    101101        </target> 
    102102 
     103 
     104    <target name="schemaupdate" depends="prepare,load-hibernate"> 
     105        <taskdef name="schemaupdate" 
     106            classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask" 
     107            classpathref="omero.classpath"/> 
     108 
     109        <schemaupdate 
     110            properties="${resrc.dest}/local.properties" text="true" quiet="no"> 
     111            <fileset dir="${classes.dir}"> 
     112                <include name="**/*.hbm.xml"/> 
     113            </fileset> 
     114        </schemaupdate> 
     115    </target> 
     116 
     117    <target name="schemavalidate" depends="prepare,load-hibernate"> 
     118        <taskdef name="schemavalidator" 
     119            classname="org.hibernate.tool.hbm2ddl.SchemaValidatorTask" 
     120            classpathref="omero.classpath"/> 
     121 
     122        <schemavalidator 
     123            properties="${resrc.dest}/local.properties"> 
     124            <fileset dir="${classes.dir}"> 
     125                <include name="**/*.hbm.xml"/> 
     126            </fileset> 
     127        </schemavalidator> 
     128    </target> 
     129 
    103130</project> 
  • trunk/sql/README.txt

    r1525 r1562  
    1717 
    1818 
    19  
     19To create the update scripts, first cleaned version of each schema are compared  
     20(where cleaned means simple formatting differences, random foreign key names, etc.  
     21are removed). Then it is necessary to compare the values in all enumerations. 
  • trunk/sql/VERSIONS.txt

    r1546 r1562  
    1919HERE ARE WE -->               |                        
    2020                              |                        
    21 DBUPDATE           2007/05    +-------+ r1397          
    22 Added dbpatch table.          |         OMERO3:4       
    23                               |                        
    24                               |                        
    25                               |                        
    26 DBUPDATE           2007/04    +-------+ r1397          
    27 Added permissions column      |         OMERO3:3       
    28 security tables.              |                        
    29                               |                        
    30                               |                        
    31 DBUPDATE           2007/03    +-------+ r1394          
    32 Model updates, etc.           |         OMERO3:2       
    33                               |                        
    34                               |                        
    35                               |                        
    36                               |                        
    37                               |                        
    38                               |                        
    39 FIRST DATABASE     2007/01    +-------+ r???           
    40                               |         OMERO3:1       
     21DBUPDATE           2007/05    +-------+ r1547    <-+    
     22Added dbpatch table.          |         OMERO3:4   |    
     23                              |                    |    
     24                              |                    |    
     25                              |                    |    
     26DBUPDATE           2007/04    +-------+ r1397      |    
     27Added permissions column      |         OMERO3:3   |    
     28security tables.              |                    |    
     29                              |                    |    
     30                              |                    |    
     31DBUPDATE           2007/03    +-------+ r1394      |       
     32Model updates, etc.           |         OMERO3:2   |    
     33                              |                    |    
     34                              |                    |    
     35                              |                    |    
     36                              |                    |    
     37                              |                    |    
     38                              |                    |    
     39FIRST DATABASE     2007/01    +-------+ ~ r1216  >-+   
     403.0-Beta1 Release             |         OMERO3:1       
    4141                              |                        
    4242                              |                        
  • trunk/sql/misc/macros.el

    r1525 r1562  
    33;; 
    44 
    5 (fset 'psql-fk-update 
    6       [?\C-s ?a ?l ?t ?e ?r ?  ?t ?a ?b ?l ?e ?\C-m right ?\C-  ?\C-e left escape ?w ?\C-s ?a ?d ?d ?  ?c ?o ?n ?s ?t ?r ?a ?i ?n ?t ?\C-m right right right ?\C-y ?\C-k ?\C-s ?f ?o ?r ?e ?i ?g ?n ?  ?k ?e ?y ?\C-m right right ?\C-  ?\C-s ?) left escape ?w up end ?_ ?\C-y ?\C-s ?r ?e ?f ?e ?r ?e ?n ?\C-m right right right right ?\C-  ?\C-e ?\; backspace left escape ?w up up end ?_ ?\C-y]) 
     5(fset 'psql-fk-update [?\C-s ?a ?l ?t ?e ?r ?  ?t ?a ?b ?l ?e ?\C-m right ?\C-  ?\C-e left escape ?w ?\C-s ?a ?d ?d ?  ?c ?o ?n ?s ?t ?r ?a ?i ?n ?t ?\C-m right right right ?\C-y ?\C-k ?\C-s ?f ?o ?r ?e ?i ?g ?n ?  ?k ?e ?y ?\C-m right right ?\C-  ?\C-s ?) left escape ?w up end ?_ ?\C-y ?\C-s ?r ?e ?f ?e ?r ?e ?n ?\C-m right right right right ?\C-  ?\C-e ?\; backspace left escape ?w up up end ?_ ?\C-y]) 
    76 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/