@ -6,7 +6,7 @@ export const GRIST_DOC_SQL = `
PRAGMA foreign_keys = OFF ;
BEGIN TRANSACTION ;
CREATE TABLE IF NOT EXISTS "_grist_DocInfo" ( id INTEGER PRIMARY KEY , "docId" TEXT DEFAULT '' , "peers" TEXT DEFAULT '' , "basketId" TEXT DEFAULT '' , "schemaVersion" INTEGER DEFAULT 0 , "timezone" TEXT DEFAULT '' , "documentSettings" TEXT DEFAULT '' ) ;
INSERT INTO _grist_DocInfo VALUES ( 1 , '' , '' , '' , 2 8 , '' , '' ) ;
INSERT INTO _grist_DocInfo VALUES ( 1 , '' , '' , '' , 2 9 , '' , '' ) ;
CREATE TABLE IF NOT EXISTS "_grist_Tables" ( id INTEGER PRIMARY KEY , "tableId" TEXT DEFAULT '' , "primaryViewId" INTEGER DEFAULT 0 , "summarySourceTable" INTEGER DEFAULT 0 , "onDemand" BOOLEAN DEFAULT 0 , "rawViewSectionRef" INTEGER DEFAULT 0 ) ;
CREATE TABLE IF NOT EXISTS "_grist_Tables_column" ( id INTEGER PRIMARY KEY , "parentId" INTEGER DEFAULT 0 , "parentPos" NUMERIC DEFAULT 1 e999 , "colId" TEXT DEFAULT '' , "type" TEXT DEFAULT '' , "widgetOptions" TEXT DEFAULT '' , "isFormula" BOOLEAN DEFAULT 0 , "formula" TEXT DEFAULT '' , "label" TEXT DEFAULT '' , "untieColIdFromLabel" BOOLEAN DEFAULT 0 , "summarySourceCol" INTEGER DEFAULT 0 , "displayCol" INTEGER DEFAULT 0 , "visibleCol" INTEGER DEFAULT 0 , "rules" TEXT DEFAULT NULL , "recalcWhen" INTEGER DEFAULT 0 , "recalcDeps" TEXT DEFAULT NULL ) ;
CREATE TABLE IF NOT EXISTS "_grist_Imports" ( id INTEGER PRIMARY KEY , "tableRef" INTEGER DEFAULT 0 , "origFileName" TEXT DEFAULT '' , "parseFormula" TEXT DEFAULT '' , "delimiter" TEXT DEFAULT '' , "doublequote" BOOLEAN DEFAULT 0 , "escapechar" TEXT DEFAULT '' , "quotechar" TEXT DEFAULT '' , "skipinitialspace" BOOLEAN DEFAULT 0 , "encoding" TEXT DEFAULT '' , "hasHeaders" BOOLEAN DEFAULT 0 ) ;
@ -42,7 +42,7 @@ export const GRIST_DOC_WITH_TABLE1_SQL = `
PRAGMA foreign_keys = OFF ;
BEGIN TRANSACTION ;
CREATE TABLE IF NOT EXISTS "_grist_DocInfo" ( id INTEGER PRIMARY KEY , "docId" TEXT DEFAULT '' , "peers" TEXT DEFAULT '' , "basketId" TEXT DEFAULT '' , "schemaVersion" INTEGER DEFAULT 0 , "timezone" TEXT DEFAULT '' , "documentSettings" TEXT DEFAULT '' ) ;
INSERT INTO _grist_DocInfo VALUES ( 1 , '' , '' , '' , 2 8 , '' , '' ) ;
INSERT INTO _grist_DocInfo VALUES ( 1 , '' , '' , '' , 2 9 , '' , '' ) ;
CREATE TABLE IF NOT EXISTS "_grist_Tables" ( id INTEGER PRIMARY KEY , "tableId" TEXT DEFAULT '' , "primaryViewId" INTEGER DEFAULT 0 , "summarySourceTable" INTEGER DEFAULT 0 , "onDemand" BOOLEAN DEFAULT 0 , "rawViewSectionRef" INTEGER DEFAULT 0 ) ;
INSERT INTO _grist_Tables VALUES ( 1 , 'Table1' , 1 , 0 , 0 , 2 ) ;
CREATE TABLE IF NOT EXISTS "_grist_Tables_column" ( id INTEGER PRIMARY KEY , "parentId" INTEGER DEFAULT 0 , "parentPos" NUMERIC DEFAULT 1 e999 , "colId" TEXT DEFAULT '' , "type" TEXT DEFAULT '' , "widgetOptions" TEXT DEFAULT '' , "isFormula" BOOLEAN DEFAULT 0 , "formula" TEXT DEFAULT '' , "label" TEXT DEFAULT '' , "untieColIdFromLabel" BOOLEAN DEFAULT 0 , "summarySourceCol" INTEGER DEFAULT 0 , "displayCol" INTEGER DEFAULT 0 , "visibleCol" INTEGER DEFAULT 0 , "rules" TEXT DEFAULT NULL , "recalcWhen" INTEGER DEFAULT 0 , "recalcDeps" TEXT DEFAULT NULL ) ;