started first part of transition: importing bookmarks from tags.db to bookmarks.db

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-05 20:15:51 +02:00
parent 023401f9f9
commit deb9a7b5c7
7 changed files with 61 additions and 13 deletions

View File

@@ -99,9 +99,8 @@ CREATE TABLE IF NOT EXISTS {0} (
}
@Override
public Bookmark save(String url, String comment, Collection<Long> userIds) {
public Bookmark save(String url, String comment, Collection<Long> userIds, LocalDateTime timestamp) {
try {
var timestamp = LocalDateTime.now();
var rs = select(ID).from(TABLE_URLS).where(URL, equal(url)).exec(db);
var id = 0L;
if (rs.next()) id = rs.getLong(ID);