@@ -48,7 +48,7 @@ public function up(): void
4848 $ this ->forge ->addUniqueKey (['type ' , 'secret ' ]);
4949 $ this ->forge ->addKey ('user_id ' );
5050 $ this ->forge ->addForeignKey ('user_id ' , SHIELD_TABLES ['users ' ], 'id ' , '' , 'CASCADE ' );
51- $ this ->forge ->createTable (SHIELD_TABLES ['auth_identities ' ]);
51+ $ this ->forge ->createTable (SHIELD_TABLES ['identities ' ]);
5252
5353 /**
5454 * Auth Login Attempts Table
@@ -69,7 +69,7 @@ public function up(): void
6969 $ this ->forge ->addKey (['id_type ' , 'identifier ' ]);
7070 $ this ->forge ->addKey ('user_id ' );
7171 // NOTE: Do NOT delete the user_id or identifier when the user is deleted for security audits
72- $ this ->forge ->createTable (SHIELD_TABLES ['auth_logins ' ]);
72+ $ this ->forge ->createTable (SHIELD_TABLES ['logins ' ]);
7373
7474 /*
7575 * Auth Token Login Attempts Table
@@ -89,7 +89,7 @@ public function up(): void
8989 $ this ->forge ->addKey (['id_type ' , 'identifier ' ]);
9090 $ this ->forge ->addKey ('user_id ' );
9191 // NOTE: Do NOT delete the user_id or identifier when the user is deleted for security audits
92- $ this ->forge ->createTable (SHIELD_TABLES ['auth_token_logins ' ]);
92+ $ this ->forge ->createTable (SHIELD_TABLES ['token_logins ' ]);
9393
9494 /*
9595 * Auth Remember Tokens (remember-me) Table
@@ -107,7 +107,7 @@ public function up(): void
107107 $ this ->forge ->addPrimaryKey ('id ' );
108108 $ this ->forge ->addUniqueKey ('selector ' );
109109 $ this ->forge ->addForeignKey ('user_id ' , SHIELD_TABLES ['users ' ], 'id ' , '' , 'CASCADE ' );
110- $ this ->forge ->createTable (SHIELD_TABLES ['auth_remember_tokens ' ]);
110+ $ this ->forge ->createTable (SHIELD_TABLES ['remember_tokens ' ]);
111111
112112 // Groups Users Table
113113 $ this ->forge ->addField ([
@@ -118,7 +118,7 @@ public function up(): void
118118 ]);
119119 $ this ->forge ->addPrimaryKey ('id ' );
120120 $ this ->forge ->addForeignKey ('user_id ' , SHIELD_TABLES ['users ' ], 'id ' , '' , 'CASCADE ' );
121- $ this ->forge ->createTable (SHIELD_TABLES ['auth_groups_users ' ]);
121+ $ this ->forge ->createTable (SHIELD_TABLES ['groups_users ' ]);
122122
123123 // Users Permissions Table
124124 $ this ->forge ->addField ([
@@ -129,7 +129,7 @@ public function up(): void
129129 ]);
130130 $ this ->forge ->addPrimaryKey ('id ' );
131131 $ this ->forge ->addForeignKey ('user_id ' , SHIELD_TABLES ['users ' ], 'id ' , '' , 'CASCADE ' );
132- $ this ->forge ->createTable (SHIELD_TABLES ['auth_permissions_users ' ]);
132+ $ this ->forge ->createTable (SHIELD_TABLES ['permissions_users ' ]);
133133 }
134134
135135 // --------------------------------------------------------------------
@@ -138,12 +138,12 @@ public function down(): void
138138 {
139139 $ this ->db ->disableForeignKeyChecks ();
140140
141- $ this ->forge ->dropTable (SHIELD_TABLES ['auth_logins ' ], true );
142- $ this ->forge ->dropTable (SHIELD_TABLES ['auth_token_logins ' ], true );
143- $ this ->forge ->dropTable (SHIELD_TABLES ['auth_remember_tokens ' ], true );
144- $ this ->forge ->dropTable (SHIELD_TABLES ['auth_identities ' ], true );
145- $ this ->forge ->dropTable (SHIELD_TABLES ['auth_groups_users ' ], true );
146- $ this ->forge ->dropTable (SHIELD_TABLES ['auth_permissions_users ' ], true );
141+ $ this ->forge ->dropTable (SHIELD_TABLES ['logins ' ], true );
142+ $ this ->forge ->dropTable (SHIELD_TABLES ['token_logins ' ], true );
143+ $ this ->forge ->dropTable (SHIELD_TABLES ['remember_tokens ' ], true );
144+ $ this ->forge ->dropTable (SHIELD_TABLES ['identities ' ], true );
145+ $ this ->forge ->dropTable (SHIELD_TABLES ['groups_users ' ], true );
146+ $ this ->forge ->dropTable (SHIELD_TABLES ['permissions_users ' ], true );
147147 $ this ->forge ->dropTable (SHIELD_TABLES ['users ' ], true );
148148
149149 $ this ->db ->enableForeignKeyChecks ();
0 commit comments