Omaha #4360 alterGridTablesDataURI missed non-nullable location_id. QUIDScatObs corrected name on Unique Constraint.
Former-commit-id: b9c8333fa67fd711795df17bf83ae1f3feff4bba
This commit is contained in:
parent
19020a1412
commit
2e9f97c965
5 changed files with 9 additions and 5 deletions
|
@ -20,7 +20,7 @@ echo "INFO: ${table} dataURI columns updated successfully"
|
|||
|
||||
table=grid_info
|
||||
strCols=("datasetid" "secondaryid" "ensembleid")
|
||||
dropCols=("parameter_abbreviation" "level_id")
|
||||
dropCols=("parameter_abbreviation" "level_id" "location_id")
|
||||
|
||||
# table and constraint names from GridInfoRecord.
|
||||
echo "INFO: Start update of ${table} dataURI columns."
|
||||
|
|
|
@ -103,6 +103,10 @@ public class ACARSRecord extends PluginDataObject implements ISpatialEnabled,
|
|||
@XmlElement
|
||||
private String wmoHeader;
|
||||
|
||||
/*
|
||||
* Assumes ACARSDataAdapter only creates instance of this class when it has
|
||||
* a non-null tail number.
|
||||
*/
|
||||
@DataURI(position = 1)
|
||||
@Column(length = 32, nullable = false)
|
||||
@DynamicSerializeElement
|
||||
|
|
|
@ -71,7 +71,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
|||
*/
|
||||
@Entity
|
||||
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "bufrquikscatseq")
|
||||
@Table(name = "bufrquikscat", uniqueConstraints = { @UniqueConstraint(name = "uk_bufrquikscat_datauri_field", columnNames = { "dataURI" }) })
|
||||
@Table(name = "bufrquikscat", uniqueConstraints = { @UniqueConstraint(name = "uk_bufrquikscat_datauri_fields", columnNames = { "dataURI" }) })
|
||||
/*
|
||||
* Both refTime and forecastTime are included in the refTimeIndex since
|
||||
* forecastTime is unlikely to be used.
|
||||
|
|
|
@ -73,7 +73,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
|||
@Entity
|
||||
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "ldadmesonetseq")
|
||||
@Table(name = "ldadmesonet", uniqueConstraints = { @UniqueConstraint(name = "uk_ldadmesonet_datauri_fields", columnNames = {
|
||||
"stationid", "reftime", "reportType", "dataProvider", "latitude",
|
||||
"stationid", "reftime", "reporttype", "dataprovider", "latitude",
|
||||
"longitude" }) })
|
||||
/*
|
||||
* Both refTime and forecastTime are included in the refTimeIndex since
|
||||
|
|
|
@ -89,8 +89,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
|||
@Entity
|
||||
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "madisseq")
|
||||
@Table(name = "madis", uniqueConstraints = { @UniqueConstraint(name = "uk_madis_datauri_fields", columnNames = {
|
||||
"latitude", "longitude", "stationId", "refTime", "provider",
|
||||
"subProvider", "restriction" }) })
|
||||
"latitude", "longitude", "stationid", "reftime", "provider",
|
||||
"subprovider", "restriction" }) })
|
||||
@org.hibernate.annotations.Table(appliesTo = "madis", indexes = { @Index(name = "madis_wfsQueryIndex", columnNames = {
|
||||
"insertTime", "location" }), })
|
||||
@DynamicSerialize
|
||||
|
|
Loading…
Add table
Reference in a new issue