All checks were successful
Build and Push Docker Images / build-central-services-api (push) Successful in 35s
Build and Push Docker Images / build-central-services-admin (push) Successful in 35s
Build and Push Docker Images / build-backend (push) Successful in 57s
Build and Push Docker Images / build-frontend (push) Successful in 1m58s
Build and Push Docker Images / build-website (push) Successful in 36s
Build and Push Docker Images / build-docs (push) Successful in 34s
21 lines
565 B
SQL
21 lines
565 B
SQL
UPDATE "accounts"
|
|
SET "label" = 'Umsatzsteuer 19 %',
|
|
"description" = NULL
|
|
WHERE "accountChart" = 'skr03'
|
|
AND "number" = '1776';
|
|
--> statement-breakpoint
|
|
INSERT INTO "accounts" ("number", "label", "description", "accountChart")
|
|
SELECT '1776', 'Umsatzsteuer 19 %', NULL, 'skr03'
|
|
WHERE NOT EXISTS (
|
|
SELECT 1
|
|
FROM "accounts"
|
|
WHERE "accountChart" = 'skr03'
|
|
AND "number" = '1776'
|
|
);
|
|
--> statement-breakpoint
|
|
SELECT setval(
|
|
pg_get_serial_sequence('accounts', 'id'),
|
|
GREATEST(COALESCE((SELECT MAX("id") FROM "accounts"), 1), 1),
|
|
true
|
|
);
|