| | 14 | |
| | 15 | ''' Work summary ''' |
| | 16 | |
| | 17 | ''' 1. Change of source file (ODM, psps_schema etc.): ''' |
| | 18 | |
| | 19 | - psps_schema: |
| | 20 | |
| | 21 | - C:\chenx\psps_schema-20120731\PanSTARRS.Testing.Common.sql [[br]] |
| | 22 | Ln671 - Object found. relevant columns: o.grColor, o.riColor, o.izColor, o.zyColor [[br]] |
| | 23 | Lines updated: 667, 676, 677. [[br]] |
| | 24 | <---------------updated---------- |
| | 25 | |
| | 26 | - C:\chenx\psps_schema-20120731\PanSTARRS.Tables.Common.sql [[br]] |
| | 27 | All relevant 56 columns in Object table are updated. [[br]] |
| | 28 | <---------------updated---------- |
| | 29 | |
| | 30 | - C:\chenx\psps_schema-20120731\20Q\The20Queries_4Pan-rev-2009-7-31-Zones.sql [[br]] |
| | 31 | Ln454 - Object found. relevant columns: o.grColor, o.riColor, o.izColor, o.zyColor [[br]] |
| | 32 | Lines updated: 451, 460, 461. [[br]] |
| | 33 | Make this C:\chenx\psps_schema-20120731\20Q\The20Queries_4Pan-rev-2012-7-31-Zones.sql [[br]] |
| | 34 | and the previous file unchanged. May need to check and update the new version [[br]] |
| | 35 | <---------------updated---------- |
| | 36 | |
| | 37 | - ODM |
| | 38 | |
| | 39 | - All C# code don't involve Object table. i.e., no hard-coded stuff in C# code. |
| | 40 | |
| | 41 | - C:\chenx\ODM-20120731\Workflows\SQL\cleanup-Jim.sql [[br]] |
| | 42 | Contains Object table. -> but this does NOT need to be updated -- this is a draft file. |
| | 43 | |
| | 44 | - C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.Scripts.OB.sql [[br]] |
| | 45 | C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.Scripts.ST.sql [[br]] |
| | 46 | C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.Scripts.P2.sql [[br]] |
| | 47 | These 3 files contain Object table creation script. Update this. [[br]] |
| | 48 | <---------------updated---------- |
| | 49 | |
| | 50 | - C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.sql [[br]] |
| | 51 | Table Reference.ColumnValidation has values for Object table validation. [[br]] |
| | 52 | Update this, but leave values out since we don't know yet. [[br]] |
| | 53 | <---------------updated---------- |
| | 54 | |
| | 55 | - C:\chenx\ODM-20120731\Workflows\Scripts\LoadMerge\ColdSlice.PanSTARRS.Workflow.Common.State.sql [[br]] |
| | 56 | Contains s.p. PanSTARRS_Workflow_Common_State.MergeObject_insertSwitchTable_Objects [[br]] |
| | 57 | This was used to created Object table before. But now we load OB from ipp, so this is no longer used. [[br]] |
| | 58 | So do NOT update this!!! <---------------Not updated !!!---------- |
| | 59 | |
| | 60 | - C:\chenx\ODM-20120731\Workflows\Scripts\LoadMerge\Load.PanSTARRS.Workflow.Common.State.sql [[br]] |
| | 61 | Contains s.p. PanSTARRS_Workflow_Common_State.LoadObject_LoadDerivedTables_OB. [[br]] |
| | 62 | <---------------updated---------- |
| | 63 | |
| | 64 | - ODM/Services - No Object table used. |
| | 65 | |
| | 66 | - ODM/Initialize [[br]] |
| | 67 | - C:\chenx\ODM-20120731\Initialize\PanSTARRS.Initialize.Jim\DevSql\04-Pan-rev-08-08-29.sql |
| | 68 | - C:\chenx\ODM-20120731\Initialize\PanSTARRS.Initialize.Jim\JimSql\04-Pan-rev-08-08-29.sql [[br]] |
| | 69 | contains Object table. [[br]] |
| | 70 | --> These 2 files contain scripts to create Object table, but they are not used now, so don't change yet. [[br]] |
| | 71 | If need to change, only the two scripts to create Object table need to be updated. This is trivial. [[br]] |
| | 72 | |
| | 73 | - Look at: C:\chenx\ODM-20120731\Workflows\Scripts\Spherical-T20070613-SQL [[br]] |
| | 74 | no Object found. |
| | 75 | |
| | 76 | - Look at: C:\chenx\ODM-20120731\Workflows\Scripts\ReferenceData [[br]] |
| | 77 | no Object found. |
| | 78 | |
| | 79 | - ''' Conclusion: The only changed places are in ODM\Workflow and psps_schema: ''' [[br]] |
| | 80 | psps_schema\PanSTARRS.Testing.Common.sql [[br]] |
| | 81 | psps_schema\20Q\The20Queries_4Pan-rev-2012-7-31-Zones.sql [[br]] |
| | 82 | |
| | 83 | ODM\Workflows\Scripts\Admin\WMD.Reference.Scripts.OB.sql [[br]] |
| | 84 | ODM\Workflows\Scripts\Admin\WMD.Reference.Scripts.ST.sql [[br]] |
| | 85 | ODM\Workflows\Scripts\Admin\WMD.Reference.Scripts.P2.sql [[br]] |
| | 86 | |
| | 87 | ODM\Workflows\Scripts\Admin\WMD.Reference.sql [[br]] |
| | 88 | |
| | 89 | ODM\Workflows\Scripts\LoadMerge\Load.PanSTARRS.Workflow.Common.State.sql |
| | 90 | |
| | 91 | ''' 2. Change of database ''' |
| | 92 | |
| | 93 | ''' These database objects should be changed: ''' |
| | 94 | |
| | 95 | - Stored procedure PanSTARRS_Workflow_Common_State.LoadObject_LoadDerivedTables_OB [[br]] |
| | 96 | - Note: this s.p. exists in the load database. [[br]] |
| | 97 | For new survey such as SAS, this will be created refresh. [[br]] |
| | 98 | For existing survey such as 3PI, this needs to be updated before load again. [[br]] |
| | 99 | - Admin machine WMD table Reference.ColumnValidation [[br]] |
| | 100 | - Note: this table is in the Admin machine WMD. This needs to be updated for new load. |
| | 101 | - Admin machine WMD table Reference.Scripts, from: [[br]] |
| | 102 | C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.Scripts.OB.sql [[br]] |
| | 103 | C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.Scripts.ST.sql [[br]] |
| | 104 | C:\chenx\ODM-20120731\Workflows\Scripts\Admin\WMD.Reference.Scripts.P2.sql [[br]] |
| | 105 | - Note: these are in the Admin machine WMD. They need to be updated for new load. [[br]] |
| | 106 | Here the order of fields should match the order of fields in the incoming batch. |
| | 107 | |