14134 Commits

Author SHA1 Message Date
Johannes Meyer
9c6d930e17 MigrationManager: Also check table privileges 2023-09-19 14:37:55 +02:00
Johannes Meyer
4a8d171aec migrations/index: Let the migrate all button submit the migration form 2023-09-19 14:37:55 +02:00
Johannes Meyer
8a1c224461 WebWizard: Grant permission for DDL statements by default 2023-09-19 14:37:55 +02:00
Yonas Habteab
167ff54947 Enhance logging 2023-09-19 14:37:55 +02:00
Yonas Habteab
47b214ee1b Use PDO::fetchColumn() where applicable 2023-09-19 14:37:55 +02:00
Yonas Habteab
d2ce60d4c0 Always right align control-label-group 2023-09-19 14:37:55 +02:00
Yonas Habteab
99e8a2322d Don't render migrate button in detailed file list view 2023-09-19 14:37:55 +02:00
Yonas Habteab
501ab81416 docs: Add missing grants in MYSQL manual setup examples 2023-09-19 14:37:55 +02:00
Yonas Habteab
2505e79a2d DbMigration: Check for mysql collation name whether to check 2.11 is migrated 2023-09-19 14:37:55 +02:00
Yonas Habteab
3f372330b3 CSS: Remove obsolete icinga-form styles & store max view width in a variable 2023-09-19 14:37:55 +02:00
Yonas Habteab
6a4314120b Don't use IF (NOT) EXITS SQL commands in upgrade scripts 2023-09-19 14:37:55 +02:00
Yonas Habteab
dc738ec4ce DbMigrationHook: Adjust regex pattern & add missing argument docs 2023-09-19 14:37:55 +02:00
Yonas Habteab
96a6321569 DbMigration: Adjust usage of Database::getDb() 2023-09-19 14:37:55 +02:00
Yonas Habteab
fac3855a86 DbMigrationStep: Don't cache sql statements unnecessarily 2023-09-19 14:37:55 +02:00
Yonas Habteab
864a78302f Make sql schema files consistent 2023-09-19 14:37:55 +02:00
Yonas Habteab
26cae8b882 Rename MigrationHook -> DbMigrationHook 2023-09-19 14:37:55 +02:00
Yonas Habteab
ce89d4a7cb Rename Common\DbMigration -> DbMigrationStep 2023-09-19 14:37:55 +02:00
Yonas Habteab
2657f032dc Allow to automatically fix missing grants & elevalte database users
Co-authored-by: Johannes Meyer
2023-09-19 14:37:55 +02:00
Yonas Habteab
12bc95099e Don't raise unhandled exceptions in menu context 2023-09-19 14:37:55 +02:00
Yonas Habteab
ce2073d7bf Add 2.12 database upgrade docs 2023-09-19 14:37:55 +02:00
Yonas Habteab
80ac314d8b Schema: Update timestamp & set success of existing schema version entry 2023-09-19 14:37:55 +02:00
Yonas Habteab
ac24c6d34b Don't traverse schema query if the last successfully migrated version is found 2023-09-19 14:37:55 +02:00
Yonas Habteab
73b1041816 Fix phpstan claims & php code sniffer errors 2023-09-19 14:37:55 +02:00
Yonas Habteab
a167b6d21a Rename migration list item classes 2023-09-19 14:37:55 +02:00
Yonas Habteab
821a6812ae Use EmptyState(Bar) classes where applicable 2023-09-19 14:37:55 +02:00
Yonas Habteab
13569a34b7 Check explicitly for false before raising an unknown error 2023-09-19 14:37:55 +02:00
Yonas Habteab
4b2784f85e Use Icinga Web as a component name 2023-09-19 14:37:55 +02:00
Yonas Habteab
2944ceaa52 Rename getSchemaQueryFor() & drop $version param 2023-09-19 14:37:55 +02:00
Florian Strohmaier
7e313c921a MigrationListItemMinimal: Customize markup for styling 2023-09-19 14:37:55 +02:00
Florian Strohmaier
44897e4903 CSS: Styling 2023-09-19 14:37:55 +02:00
Yonas Habteab
a00f094e10 Add extra collapsible container around error section 2023-09-19 14:37:55 +02:00
Yonas Habteab
ad02431bd1 Add extra class to outer item lists & render subject header in the error box 2023-09-19 14:37:55 +02:00
Yonas Habteab
fdadba59ca Fix form with mulitple buttons doesn't recognize whether it's been submitted 2023-09-19 14:37:55 +02:00
Yonas Habteab
192a21b668 Don't use strong tag to highlight unselectable items 2023-09-19 14:37:55 +02:00
Yonas Habteab
fb33a2097a Defferentiate migrations with no provided descriptions 2023-09-19 14:37:55 +02:00
Yonas Habteab
d186604b62 Allow to define row count after which a collapsible can be collapsed 2023-09-19 14:37:55 +02:00
Yonas Habteab
ce012dcdb2 Hook: Don't abort loading remaining hooks due to one broken hook
`Hook::all()` shouldn't abort loading the remaining hooks when one of
the provided hook is broken.
2023-09-19 14:37:55 +02:00
Yonas Habteab
dec24686bc Pending migrations CSS enhancement 2023-09-19 14:37:55 +02:00
Yonas Habteab
15792fb59a Provide DbMigration hook & register when bootstrapping 2023-09-19 14:37:55 +02:00
Florian Strohmaier
bc3c444cf5 CSS: Adjust styles 2023-09-19 14:37:55 +02:00
Yonas Habteab
1da5487066 Introduce MigrationsController & add pending migrations list in about view 2023-09-19 14:37:55 +02:00
Yonas Habteab
a9db85ed71 Introduce application/migrations permission 2023-09-19 14:37:55 +02:00
Yonas Habteab
faaebaeffb Forward failed requests for routes with pending migrations 2023-09-19 14:37:55 +02:00
Yonas Habteab
85b63dd067 Introduce migration ListItem & ItemList classes 2023-09-19 14:37:55 +02:00
Yonas Habteab
2daa1447b7 Introduce MigrationForm class 2023-09-19 14:37:55 +02:00
Yonas Habteab
81c9e5cfc5 Introduce MigrationManager class 2023-09-19 14:37:55 +02:00
Yonas Habteab
babc59437f Introduce base MigrationHook class & helpers 2023-09-19 14:37:54 +02:00
Yonas Habteab
21bde13274 Introduce database models required by migration hooks 2023-09-19 14:37:54 +02:00
Yonas Habteab
ac369f9156 X509\Sni: Clear backend instances before performing actual DB queries 2023-09-18 13:58:22 +02:00
Johannes Meyer
c170727fc3 WebWizard: Define icingaweb_schema as database table
fixes #5112
2023-09-14 13:12:29 +02:00