Sortieren und Filtern wie in Excel in jeder Tabelle, Ansichten je Benutzer (0.13.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -12,6 +12,7 @@ import m007 from "../src/server/migrations/007_anmeldung.sql";
|
||||
import m008 from "../src/server/migrations/008_personal.sql";
|
||||
import m009 from "../src/server/migrations/009_zeiterfassung.sql";
|
||||
import m010 from "../src/server/migrations/010_dauer_aus_besetzung.sql";
|
||||
import m011 from "../src/server/migrations/011_ansichten.sql";
|
||||
|
||||
const MIGRATIONEN: [string, string][] = [
|
||||
["001_grundlage.sql", m001], ["002_v70_uebernahme.sql", m002], ["003_vorgangsnummer.sql", m003], ["004_besetzung.sql", m004],
|
||||
@@ -19,6 +20,7 @@ const MIGRATIONEN: [string, string][] = [
|
||||
["007_anmeldung.sql", m007], ["008_personal.sql", m008],
|
||||
["009_zeiterfassung.sql", m009],
|
||||
["010_dauer_aus_besetzung.sql", m010],
|
||||
["011_ansichten.sql", m011],
|
||||
];
|
||||
|
||||
export async function starte(db: PGlite, v70?: unknown) {
|
||||
|
||||
@@ -62,7 +62,7 @@ async function main() {
|
||||
if (speicher) {
|
||||
melde("Deine Daten werden geladen …");
|
||||
const daten: Record<string, Record<string, unknown>[]> = {};
|
||||
for (const pfad of [...TABELLEN, ...NUR_SICHERUNG].map((t) => t.pfad).concat("benutzer")) daten[pfad] = await nochmal(() => alle(speicher, pfad));
|
||||
for (const pfad of [...TABELLEN, ...NUR_SICHERUNG].map((t) => t.pfad).concat("benutzer", "ansichten")) daten[pfad] = await nochmal(() => alle(speicher, pfad));
|
||||
const e = await nochmal(() => speicher.doc("meta/einstellungen").get());
|
||||
if (Object.values(daten).some((z) => z.length) || e.exists) {
|
||||
const r = await app.verarbeite("POST", "/api/import/stand", { programm: "betrieb", einstellungen: e.data()?.daten, daten });
|
||||
|
||||
Reference in New Issue
Block a user