Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TableChangeJustification
Scripts

New Table:

  • Id (PK, int)
  • Name (nvarchar(255) not null)
  • ScriptType (nvarchar(20), not null)
  • ScriptContent (nvarchar(max) null)
  • RequiresOdsApi (bit, not null)

Supports storage of PowerShell scripts.

EF Core note: Implement ScriptType as an enum.

DataMaps

New column:

  • FileProcessorScriptId (FK, int, null)
Optionally associate a data map with a Custom File Processor.
Agents

Removed columns:

  • RowProcessor (nvarchar(max), null)
  • FileGenerator (nvarchar(max), null)

New columns:

  • RowProcessorScriptId (FK, int, null)
  • FileGeneratorScriptId (FK, int, null)

Replace Custom Row Processor and Custom File Generator filenames with database references.

This will require a specialized migration:

  • Create a Script record with Name of the current value.
  • Reference it from the new column, and drop the old column.
  • On web application startup, for any Script records with a null ScriptContent value, get the file from the file system (by Name and known path per ScriptType) and populate contents into ScriptContent.

...