This commit is contained in:
Mystikfluu 2023-04-01 12:44:30 +02:00
parent 4b23560a46
commit 4057fd6cae

View File

@ -874,7 +874,7 @@ public class B3
box.getChildren().addAll(this.addCurrentDateToDatabaseNameCB, this.generateInsertsCB, this.singleInsertStatementCB, this.saveSQLScriptBTN);
TitledPane createddl = new TitledPane("Create DDL", box);
createddl.setExpanded(false);
this.buttonPane.add(createddl, 0, ri++, 2, 1);
this.buttonPane.add(createddl, 0, ri, 2, 1);
this.statusInformation = new TextField("Creation Mode: entity-set -> press left mouse button on working area -> enter name of entity-set -> press enter key");
this.statusInformation.setEditable(false);
@ -1167,7 +1167,7 @@ public class B3
LocalDate today = LocalDate.now();
String currentDate = "";
if (this.addCurrentDateToDatabaseNameCB.isSelected()) {
currentDate = today.getYear() + ((today.getMonthValue() < 10) ? ("0" + today.getMonthValue()) : "" + today.getMonthValue()) + ((today.getDayOfMonth() < 10) ? ("0" + today.getDayOfMonth()) : "" + today.getDayOfMonth());
currentDate = today.getYear() + ((today.getMonthValue() < 10) ? ("0" + today.getMonthValue()) : String.valueOf(today.getMonthValue())) + ((today.getDayOfMonth() < 10) ? ("0" + today.getDayOfMonth()) : String.valueOf(today.getDayOfMonth()));
}
fc.setInitialFileName(currentDate + this.currentTab.canvas.dsfdsfd45645zr().getDatabaseName());
fc.getExtensionFilters().add(new FileChooser.ExtensionFilter("*.SQL", "*.sql"));