Fixed/added comments

This commit is contained in:
Aleksei 2020-04-11 19:32:19 -04:00
parent ef466013e0
commit c2dcf7ee80
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException; import java.util.concurrent.CompletionException;
public class OutfitController { public class OutfitController {
// There is no delete method. 'Deletions' should be executed as an update to the deleted flag.
public static CompletableFuture<Void> insert(Outfit outfit) { public static CompletableFuture<Void> insert(Outfit outfit) {
return CompletableFuture.runAsync(() -> { return CompletableFuture.runAsync(() -> {
try { try {

View File

@ -42,7 +42,7 @@ public class GalleryChannel extends DatabaseModel {
return "CREATE TABLE IF NOT EXISTS galleries (" + return "CREATE TABLE IF NOT EXISTS galleries (" +
"server_id TEXT," + "server_id TEXT," +
"server_name TEXT," + "server_name TEXT," +
"channel_id TEXT," + // PRIMARY KEY? There can only be one gallery per channel. "channel_id TEXT," + // TODO: PRIMARY KEY? There can only be one gallery per channel.
"channel_name TEXT," + "channel_name TEXT," +
"tag TEXT)"; "tag TEXT)";
} }