feat(platform): checkpoint current implementation state
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { PrismaClient, type HolidayCalendarEntry } from "@prisma/client";
|
||||
import { buildHolidayCalendarSeedDefinitions } from "./holiday-calendar-seed-data.js";
|
||||
import { loadWorkspaceEnv } from "./load-workspace-env.js";
|
||||
import { assertCapaKrakenDbTarget } from "./safe-destructive-env.js";
|
||||
|
||||
loadWorkspaceEnv();
|
||||
|
||||
@@ -49,6 +50,7 @@ async function findScopedCalendar(input: {
|
||||
}
|
||||
|
||||
async function main() {
|
||||
assertCapaKrakenDbTarget("db:seed:holidays");
|
||||
console.log("Seeding holiday calendars for 2026-2027...");
|
||||
|
||||
const countries = await prisma.country.findMany({
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { PrismaClient, type Prisma } from "@prisma/client";
|
||||
import { getHolidayDemoCityNamesByCountry, getHolidayDemoProfileForIndex } from "./holiday-demo-profiles.js";
|
||||
import { loadWorkspaceEnv } from "./load-workspace-env.js";
|
||||
import { assertCapaKrakenDbTarget } from "./safe-destructive-env.js";
|
||||
|
||||
loadWorkspaceEnv();
|
||||
|
||||
@@ -52,6 +53,7 @@ async function ensureCities(countryByCode: Map<string, CountryRecord>) {
|
||||
}
|
||||
|
||||
async function main() {
|
||||
assertCapaKrakenDbTarget("db:seed:holiday-demo-resources");
|
||||
console.log("Normalizing active resources for holiday demo profiles...");
|
||||
|
||||
const countrySeeds = [
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { BlueprintTarget, FieldType } from "@capakraken/shared";
|
||||
import { PrismaClient } from "@prisma/client";
|
||||
import { loadWorkspaceEnv } from "./load-workspace-env.js";
|
||||
import { assertCapaKrakenDbTarget } from "./safe-destructive-env.js";
|
||||
|
||||
loadWorkspaceEnv();
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
@@ -1174,6 +1178,7 @@ const rolePresetsMotion = [
|
||||
// ─── Main ───────────────────────────────────────────────────────────────────
|
||||
|
||||
async function main() {
|
||||
assertCapaKrakenDbTarget("db:update:blueprints");
|
||||
console.log("Starting blueprint update...\n");
|
||||
|
||||
// Blueprints to update in-place (by name — preserves PKs and FKs)
|
||||
|
||||
Reference in New Issue
Block a user