Yin Bin 3 months ago
parent
commit
fe0274f5a2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      scripts/auto_check_model_and_table.js

+ 4 - 1
scripts/auto_check_model_and_table.js

@@ -61,6 +61,7 @@ async function checkMissingModels() {
                 table_schema = 'xiaoding_test'
                 AND table_name NOT LIKE 'admin_%'
                 AND table_name NOT LIKE 'manage_%'
+                AND table_name NOT LIKE 'view_%'
                 AND table_name NOT IN(
                     'cache',
                     'cache_locks',
@@ -69,7 +70,9 @@ async function checkMissingModels() {
                     'jobs',
                     'migrations',
                     'password_reset_tokens',
-                    'personal_access_tokens'
+                    'personal_access_tokens',
+                    'sessions'
+
                 )  `);
 
         const existingTables = rows.map(row => row.table_name);