File tree Expand file tree Collapse file tree 3 files changed +45
-7
lines changed
Expand file tree Collapse file tree 3 files changed +45
-7
lines changed Original file line number Diff line number Diff line change 33namespace Daycry \RestServer \Database \Migrations ;
44
55use CodeIgniter \Database \Migration ;
6+ use CodeIgniter \Database \Forge ;
67
78class CreateRestServerTables extends Migration
89{
9- //protected $DBGroup = 'default';
10+ protected $ DBGroup = 'default ' ;
11+
12+ /**
13+ * Constructor.
14+ *
15+ * @param Forge $forge
16+ */
17+ public function __construct (?Forge $ forge = null )
18+ {
19+ $ config = $ this ->_getConfig ();
20+ $ this ->DBGroup = $ config ->restDatabaseGroup ;
21+
22+ parent ::__construct ($ forge );
23+ }
1024
1125 public function up ()
1226 {
1327 $ config = $ this ->_getConfig ();
1428
15- $ this ->DBGroup = $ config ->restDatabaseGroup ;
16-
1729 /*
1830 * Petitions
1931 */
Original file line number Diff line number Diff line change 33namespace Daycry \RestServer \Database \Migrations ;
44
55use CodeIgniter \Database \Migration ;
6+ use CodeIgniter \Database \Forge ;
67
78class CreateAttemptTable extends Migration
89{
9- // protected $DBGroup = 'default';
10+ protected $ DBGroup = 'default ' ;
1011
11- public function up ()
12+ /**
13+ * Constructor.
14+ *
15+ * @param Forge $forge
16+ */
17+ public function __construct (?Forge $ forge = null )
1218 {
1319 $ config = $ this ->_getConfig ();
14-
1520 $ this ->DBGroup = $ config ->restDatabaseGroup ;
1621
22+ parent ::__construct ($ forge );
23+ }
24+
25+ public function up ()
26+ {
27+ $ config = $ this ->_getConfig ();
28+
1729 /*
1830 * Petitions
1931 */
Original file line number Diff line number Diff line change 33namespace Daycry \RestServer \Database \Migrations ;
44
55use CodeIgniter \Database \Migration ;
6+ use CodeIgniter \Database \Forge ;
67
78class CreateNamespaceTable extends Migration
89{
9- //protected $DBGroup = 'default';
10+ protected $ DBGroup = 'default ' ;
11+
12+ /**
13+ * Constructor.
14+ *
15+ * @param Forge $forge
16+ */
17+ public function __construct (?Forge $ forge = null )
18+ {
19+ $ config = $ this ->_getConfig ();
20+ $ this ->DBGroup = $ config ->restDatabaseGroup ;
21+
22+ parent ::__construct ($ forge );
23+ }
1024
1125 public function up ()
1226 {
You can’t perform that action at this time.
0 commit comments