()
| 19 | } |
| 20 | |
| 21 | async testDatabaseIntegrity() { |
| 22 | console.log('🔍 Testing database integrity...\n'); |
| 23 | |
| 24 | // 测试表是否存在 |
| 25 | const tables = [ |
| 26 | 'issues', |
| 27 | 'css_inspiration', |
| 28 | 'code_snippets', |
| 29 | 'demo_styles' |
| 30 | ]; |
| 31 | |
| 32 | for (const table of tables) { |
| 33 | await this.checkTable(table); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | checkTable(tableName) { |
| 38 | return new Promise((resolve, reject) => { |