Issue #397: Implement logging of DDL queries to migration files

This commit is contained in:
Ansgar Becker
2021-01-28 08:23:12 +01:00
parent be66d708dc
commit 153e0724bd
6 changed files with 141 additions and 23 deletions

View File

@ -140,7 +140,7 @@ type
TAppSettingDataType = (adInt, adBool, adString);
TAppSettingIndex = (asHiddenColumns, asFilter, asSort, asDisplayedColumnsSorted, asLastSessions,
asLastActiveSession, asAutoReconnect, asRestoreLastUsedDB, asLastUsedDB, asTreeBackground, asIgnoreDatabasePattern,
asLastActiveSession, asAutoReconnect, asRestoreLastUsedDB, asLastUsedDB, asTreeBackground, asIgnoreDatabasePattern, asLogMigrations, asLogMigrationsPath,
asFontName, asFontSize, asTabWidth, asDataFontName, asDataFontSize, asDataLocalNumberFormat, asHintsOnResultTabs, asHightlightSameTextBackground,
asLogsqlnum, asLogsqlwidth, asSessionLogsDirectory, asLogHorizontalScrollbar, asSQLColActiveLine,
asSQLColMatchingBraceForeground, asSQLColMatchingBraceBackground,
@ -3399,6 +3399,8 @@ begin
InitSetting(asLastUsedDB, 'lastUsedDB', 0, False, '', True);
InitSetting(asTreeBackground, 'TreeBackground', clNone, False, '', True);
InitSetting(asIgnoreDatabasePattern, 'IgnoreDatabasePattern', 0, False, '', True);
InitSetting(asLogMigrations, 'LogMigrations', 0, False, '', True);
InitSetting(asLogMigrationsPath, 'LogMigrationsPath', 0, False, DirnameUserAppData + 'Migrations\%session\', True);
if Screen.Fonts.IndexOf('Consolas') > -1 then
InitSetting(asFontName, 'FontName', 0, False, 'Consolas')
else