23157d2bcf
Flow Debugger (design 2026-09-05 §5.2): bit NOT NULL DEFAULT 0 column + EF migration 20260906034113 with its docs/plans/sql production twin. CreateApiMethodCommand gains TraceAllCalls=false; UpdateApiMethodCommand gains bool? TraceAllCalls (null = unchanged so an older CLI never resets it). Management result echoes the flag; CLI create/update expose --trace-all-calls; README carries the ~7-rows-per-call warning. Claude-Session: https://claude.ai/code/session_01GSLkkHKz9JrAtmJjmQK3cP
31 lines
1.0 KiB
Transact-SQL
31 lines
1.0 KiB
Transact-SQL
-- Run with QUOTED_IDENTIFIER ON (see Component-ConfigurationDatabase.md — every checked-in
|
|
-- script keeps this header in its own batch so the setting is in force when the following
|
|
-- batch parses; `sqlcmd` defaults it OFF).
|
|
SET QUOTED_IDENTIFIER ON;
|
|
SET ANSI_NULLS ON;
|
|
GO
|
|
|
|
-- Flow Debugger (design 2026-09-05 §5.2): ApiMethod.TraceAllCalls — when 1, every
|
|
-- production call to the method is fully traced (~7 audit rows per call). Production
|
|
-- twin of EF migration 20260906034113_AddApiMethodTraceAllCalls.
|
|
BEGIN TRANSACTION;
|
|
IF NOT EXISTS (
|
|
SELECT * FROM [__EFMigrationsHistory]
|
|
WHERE [MigrationId] = N'20260906034113_AddApiMethodTraceAllCalls'
|
|
)
|
|
BEGIN
|
|
ALTER TABLE [ApiMethods] ADD [TraceAllCalls] bit NOT NULL DEFAULT CAST(0 AS bit);
|
|
END;
|
|
|
|
IF NOT EXISTS (
|
|
SELECT * FROM [__EFMigrationsHistory]
|
|
WHERE [MigrationId] = N'20260906034113_AddApiMethodTraceAllCalls'
|
|
)
|
|
BEGIN
|
|
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
|
|
VALUES (N'20260906034113_AddApiMethodTraceAllCalls', N'10.0.7');
|
|
END;
|
|
|
|
COMMIT;
|
|
GO
|