new features:
- database now ignoring duplicates isntead of failing - automatic loading of importer plugins - automatic tagging Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -78,7 +78,7 @@ public class MariaDB implements Database {
|
||||
if (assignQuery == null) assignQuery = insertInto(APPOINTMENT_ATTACHMENTS, AID, UID, MIME);
|
||||
if (urlId.isPresent()) assignQuery.values(saved.id(), urlId.get(), attachment.mime());
|
||||
}
|
||||
if (assignQuery != null) assignQuery.execute(connection);
|
||||
if (assignQuery != null) assignQuery.ignoreDuplicates().execute(connection);
|
||||
}
|
||||
|
||||
{ // link to links
|
||||
@@ -89,7 +89,7 @@ public class MariaDB implements Database {
|
||||
if (assignQuery == null) assignQuery = insertInto(APPOINTMENT_URLS, AID, UID, DESCRIPTION);
|
||||
if (urlId.isPresent()) assignQuery.values(saved.id(), urlId.get(), link.desciption());
|
||||
}
|
||||
if (assignQuery != null) assignQuery.execute(connection);
|
||||
if (assignQuery != null) assignQuery.ignoreDuplicates().execute(connection);
|
||||
}
|
||||
|
||||
{
|
||||
@@ -100,7 +100,7 @@ public class MariaDB implements Database {
|
||||
if (assignQuery == null) assignQuery = insertInto(APPOINTMENT_TAGS, AID, TID);
|
||||
if (tagId.isPresent()) assignQuery.values(saved.id(), tagId.get());
|
||||
}
|
||||
if (assignQuery != null) assignQuery.execute(connection);
|
||||
if (assignQuery != null) assignQuery.ignoreDuplicates().execute(connection);
|
||||
}
|
||||
return Payload.of(saved);
|
||||
} catch (SQLException e) {
|
||||
|
||||
Reference in New Issue
Block a user