mirror of
https://github.com/zadam/trilium.git
synced 2025-02-22 14:03:36 +08:00
changed demo.tar to demo.zip
This commit is contained in:
parent
2e55d544f1
commit
c4e5b35187
3 changed files with 3 additions and 3 deletions
BIN
db/demo.tar
BIN
db/demo.tar
Binary file not shown.
BIN
db/demo.zip
Normal file
BIN
db/demo.zip
Normal file
Binary file not shown.
|
@ -87,7 +87,7 @@ async function createInitialDatabase(username, password, theme) {
|
|||
}
|
||||
|
||||
const schema = fs.readFileSync(resourceDir.DB_INIT_DIR + '/schema.sql', 'UTF-8');
|
||||
const demoFile = fs.readFileSync(resourceDir.DB_INIT_DIR + '/demo.tar');
|
||||
const demoFile = fs.readFileSync(resourceDir.DB_INIT_DIR + '/demo.zip');
|
||||
|
||||
await sql.transactional(async () => {
|
||||
await sql.executeScript(schema);
|
||||
|
@ -114,8 +114,8 @@ async function createInitialDatabase(username, password, theme) {
|
|||
|
||||
const dummyTaskContext = new TaskContext("1", 'import', false);
|
||||
|
||||
const tarImportService = require("./import/tar");
|
||||
await tarImportService.importTar(dummyTaskContext, demoFile, rootNote);
|
||||
const zipImportService = require("./import/zip");
|
||||
await zipImportService.importZip(dummyTaskContext, demoFile, rootNote);
|
||||
|
||||
const startNoteId = await sql.getValue("SELECT noteId FROM branches WHERE parentNoteId = 'root' AND isDeleted = 0 ORDER BY notePosition");
|
||||
|
||||
|
|
Loading…
Reference in a new issue