Initial commit: Korrith website, assessment API, PocketBase schema, Docker/Coolify deployment

This commit is contained in:
Korrith
2026-09-17 20:47:51 +00:00
commit c17f11f591
248 changed files with 39721 additions and 0 deletions
@@ -0,0 +1,16 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
try {
const collection = app.findCollectionByNameOrId("assessments");
return app.delete(collection);
} catch (e) {
if (e.message.includes("no rows in result set")) {
console.log("Collection not found, skipping delete");
return;
}
throw e;
}
}, (app) => {
// Note: The down migration cannot restore data, only the collection structure
// You would need to manually recreate the collection structure here if needed
})