File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,15 @@ public function setupDatabase(): void {
2929 $ connection = $ this ->connect (['dbname ' => null ]);
3030 }
3131
32+ if ($ this ->tryCreateDbUser ) {
33+ $ this ->createSpecificUser ('oc_admin ' , new ConnectionAdapter ($ connection ));
34+ }
35+
36+ $ this ->config ->setValues ([
37+ 'dbuser ' => $ this ->dbUser ,
38+ 'dbpassword ' => $ this ->dbPassword ,
39+ ]);
40+
3241 // for MD5 support
3342 // In MySQL 9+ MD5 has been deprecated and is only available as a component.
3443 // Until we dropped the support for it on the function builder, we need to load the component.
@@ -47,15 +56,6 @@ public function setupDatabase(): void {
4756 }
4857 }
4958
50- if ($ this ->tryCreateDbUser ) {
51- $ this ->createSpecificUser ('oc_admin ' , new ConnectionAdapter ($ connection ));
52- }
53-
54- $ this ->config ->setValues ([
55- 'dbuser ' => $ this ->dbUser ,
56- 'dbpassword ' => $ this ->dbPassword ,
57- ]);
58-
5959 //create the database
6060 $ this ->createDatabase ($ connection );
6161
You can’t perform that action at this time.
0 commit comments