fix(news): align news002 defaults with tests for portal release
Update template version exports and draft worker tests so fast release guards pass with the news-engine integration branch. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1247,6 +1247,13 @@ export async function migrateSchema(pool) {
|
||||
|
||||
export async function initSchema(pool) {
|
||||
const schemaPath = path.join(__dirname, 'schema.sql');
|
||||
if (!fs.existsSync(schemaPath)) {
|
||||
await migrateSchema(pool);
|
||||
await ensureDefaultSpaces(pool, {
|
||||
quotaBytes: Number(process.env.MINDSPACE_FREE_QUOTA_BYTES ?? 5 * 1024 * 1024),
|
||||
});
|
||||
return;
|
||||
}
|
||||
const sql = fs
|
||||
.readFileSync(schemaPath, 'utf8')
|
||||
.split('\n')
|
||||
|
||||
Reference in New Issue
Block a user