create-fullstack-scaffold 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -105,11 +105,13 @@ export async function closeDb(): Promise<void> {
|
|
|
105
105
|
async function stampJournalIfPushBuilt(migrationsFolder: string): Promise<void> {
|
|
106
106
|
if (!_client || !('execute' in _client)) return
|
|
107
107
|
|
|
108
|
-
//
|
|
108
|
+
// todos 表在(= 当前 schema 形态、由 push 建成)。只查 todos——
|
|
109
|
+
// tenants 仅存在于含 tenant 模块的 preset,用它做条件会漏掉全部
|
|
110
|
+
// 无 tenant preset 的库(0.6.2 首次部署七杀五的根因)
|
|
109
111
|
const shape = await _client.execute(
|
|
110
|
-
"SELECT COUNT(*) AS c FROM sqlite_master WHERE type='table' AND name
|
|
112
|
+
"SELECT COUNT(*) AS c FROM sqlite_master WHERE type='table' AND name='todos'"
|
|
111
113
|
)
|
|
112
|
-
if (Number(shape.rows[0]?.c ?? 0) <
|
|
114
|
+
if (Number(shape.rows[0]?.c ?? 0) < 1) return
|
|
113
115
|
|
|
114
116
|
const journalTable = await _client.execute(
|
|
115
117
|
"SELECT COUNT(*) AS c FROM sqlite_master WHERE type='table' AND name='__drizzle_migrations'"
|