Skip to content

Commit

Permalink
Fix Update0430 (#222)
Browse files Browse the repository at this point in the history
* Create Update0439.java

* Fix Update030
  • Loading branch information
JohannMaierhofer authored May 29, 2024
1 parent 63ac307 commit 160ae29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/de/jost_net/JVerein/server/DDLTool/Updates/Update0430.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate;
import de.jost_net.JVerein.server.DDLTool.Column;
import de.jost_net.JVerein.server.DDLTool.Index;
import de.willuhn.util.ApplicationException;
import de.willuhn.util.ProgressMonitor;

Expand All @@ -32,5 +33,14 @@ public void run() throws ApplicationException
{
execute(addColumn("konto", new Column("buchungsart",
COLTYPE.BIGINT, 0, null, false, false)));

Index idx = new Index("ixKonto1", false);
Column col = new Column("buchungsart", COLTYPE.BIGINT, 0, null, false,
false);
idx.add(col);
execute(idx.getCreateIndex("konto"));

execute(createForeignKey("fkKonto1", "konto",
"buchungsart", "buchungsart", "id", "SET NULL", "NO ACTION"));
}
}

0 comments on commit 160ae29

Please sign in to comment.