Skip to content

Commit

Permalink
Set max length of buchungsklasse bezeichnung to 255 (#133)
Browse files Browse the repository at this point in the history
Update bezeichnung max length from 100 to 255 letters

Co-authored-by: dippeal <info@dippe-it.de>
  • Loading branch information
dippeal and dippeal committed Jan 28, 2024
1 parent b148140 commit bce87b4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Input getBezeichnung() throws RemoteException
{
return bezeichnung;
}
bezeichnung = new TextInput(getBuchungsklasse().getBezeichnung(), 100);
bezeichnung = new TextInput(getBuchungsklasse().getBezeichnung(), 255);
return bezeichnung;
}

Expand Down
36 changes: 36 additions & 0 deletions src/de/jost_net/JVerein/server/DDLTool/Updates/Update0428.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**********************************************************************
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not,
* see <http://www.gnu.org/licenses/>.
*
**********************************************************************/
package de.jost_net.JVerein.server.DDLTool.Updates;

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

import java.sql.Connection;

public class Update0428 extends AbstractDDLUpdate
{
public Update0428(String driver, ProgressMonitor monitor, Connection conn)
{
super(driver, monitor, conn);
}

@Override
public void run() throws ApplicationException
{
execute(alterColumn("buchungsklasse",
new Column("bezeichnung", COLTYPE.VARCHAR, 255, null, false, false)));
}
}

0 comments on commit bce87b4

Please sign in to comment.