Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Tinebase/Update/14.9): fix CommIdentNr deleted_time unique update
Browse files Browse the repository at this point in the history
- we need to set the default (non-null) value first
  • Loading branch information
pschuele committed Jul 22, 2021
1 parent 3740e27 commit 50063e6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
44 changes: 22 additions & 22 deletions tine20/Tinebase/Model/CommunityIdentNr.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,28 @@
*/
class Tinebase_Model_CommunityIdentNr extends Tinebase_Record_NewAbstract
{
const FLD_SATZ_ART = 'satzArt';
const FLD_TEXTKENNZEICHEN = 'textkenzeichen';
const FLD_ARS_LAND = 'arsLand';
const FLD_ARS_RB = 'arsRB';
const FLD_ARS_KREIS = 'arsKreis';
const FLD_ARS_VB = 'arsVB';
const FLD_ARS_GEM = 'arsGem';
const FLD_ARS_COMBINED = 'arsCombined';
const FLD_GEMEINDENAMEN = 'gemeindenamen';
const FLD_FLAECHE = 'flaeche';
const FLD_BEVOELKERUNG_GESAMT = 'bevoelkerungGesamt';
const FLD_BEVOELKERUNG_MAENNLICH = 'bevoelkerungMaennlich';
const FLD_BEVOELKERUNG_WEIBLICH = 'bevoelkerungWeiblich';
const FLD_BEVOELKERUNG_JE_KM = 'bevoelkerungJeKm';
const FLD_PLZ = 'plz';
const FLD_LAENGENGRAD = 'laengengrad';
const FLD_BREITENGRAD = 'breitengrad';
const FLD_REISEGEBIET = 'reisegebiet';
const FLD_GRAD_DER_VERSTAEDTERUNG = 'gradDerVerstaedterung';
const MODEL_NAME_PART = 'CommunityIdentNr';
const TABLE_NAME = 'cinumber';
public const FLD_SATZ_ART = 'satzArt';
public const FLD_TEXTKENNZEICHEN = 'textkenzeichen';
public const FLD_ARS_LAND = 'arsLand';
public const FLD_ARS_RB = 'arsRB';
public const FLD_ARS_KREIS = 'arsKreis';
public const FLD_ARS_VB = 'arsVB';
public const FLD_ARS_GEM = 'arsGem';
public const FLD_ARS_COMBINED = 'arsCombined';
public const FLD_GEMEINDENAMEN = 'gemeindenamen';
public const FLD_FLAECHE = 'flaeche';
public const FLD_BEVOELKERUNG_GESAMT = 'bevoelkerungGesamt';
public const FLD_BEVOELKERUNG_MAENNLICH = 'bevoelkerungMaennlich';
public const FLD_BEVOELKERUNG_WEIBLICH = 'bevoelkerungWeiblich';
public const FLD_BEVOELKERUNG_JE_KM = 'bevoelkerungJeKm';
public const FLD_PLZ = 'plz';
public const FLD_LAENGENGRAD = 'laengengrad';
public const FLD_BREITENGRAD = 'breitengrad';
public const FLD_REISEGEBIET = 'reisegebiet';
public const FLD_GRAD_DER_VERSTAEDTERUNG = 'gradDerVerstaedterung';

public const MODEL_NAME_PART = 'CommunityIdentNr';
public const TABLE_NAME = 'cinumber';

/**
* Holds the model configuration (must be assigned in the concrete class)
Expand Down
2 changes: 2 additions & 0 deletions tine20/Tinebase/Setup/Update/14.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ public function update008()

public function update009()
{
$this->getDb()->query('UPDATE ' . SQL_TABLE_PREFIX . Tinebase_Model_CommunityIdentNr::TABLE_NAME
. ' SET deleted_time = "1970-01-01 00:00:00" WHERE deleted_time IS NULL');
Setup_SchemaTool::updateSchema([Tinebase_Model_CommunityIdentNr::class]);
$this->addApplicationUpdate('Tinebase', '14.9', self::RELEASE014_UPDATE009);
}
Expand Down

0 comments on commit 50063e6

Please sign in to comment.