Initial commit: Korrith website, assessment API, PocketBase schema, Docker/Coolify deployment
This commit is contained in:
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user