diff --git a/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts b/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts index 03bd59df9682b697ffbef37845492dc83a889ed9..d31696ed60b5d813473e917c8148051c948abdd0 100644 --- a/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts +++ b/app/lib/dal/indexDAL/sqlite/SqliteIIndex.ts @@ -23,11 +23,11 @@ export class SqliteIIndex extends SqliteTable<IindexEntry> { op: new SqlNotNullableFieldDefinition("CHAR", false, 6), pub: new SqlNotNullableFieldDefinition("VARCHAR", true, 50), - written_on: new SqlNotNullableFieldDefinition("VARCHAR", false, 80), + written_on: new SqlNotNullableFieldDefinition("VARCHAR", true, 80), writtenOn: new SqlNotNullableFieldDefinition("INT", true), created_on: new SqlNullableFieldDefinition("VARCHAR", false, 80), uid: new SqlNullableFieldDefinition("VARCHAR", true, 100), - hash: new SqlNullableFieldDefinition("VARCHAR", false, 70), + hash: new SqlNullableFieldDefinition("VARCHAR", true, 70), sig: new SqlNullableFieldDefinition("VARCHAR", false, 100), member: new SqlNullableFieldDefinition("BOOLEAN", true), wasMember: new SqlNullableFieldDefinition("BOOLEAN", true), diff --git a/app/lib/dal/indexDAL/sqlite/SqlitePeers.ts b/app/lib/dal/indexDAL/sqlite/SqlitePeers.ts index a3e0bfe766cd0f9fb517747c2b3998b0b64cc88a..3b67bd9feb95686c3f779ef43d067718bd8b653b 100644 --- a/app/lib/dal/indexDAL/sqlite/SqlitePeers.ts +++ b/app/lib/dal/indexDAL/sqlite/SqlitePeers.ts @@ -17,13 +17,13 @@ export class SqlitePeers extends SqliteTable<DBPeer> implements PeerDAO { hash: new SqlNullableFieldDefinition("VARCHAR", false, 70), first_down: new SqlNullableFieldDefinition("INT", false), last_try: new SqlNullableFieldDefinition("INT", true), - lastContact: new SqlNullableFieldDefinition("INT", false), + lastContact: new SqlNullableFieldDefinition("INT", true), pubkey: new SqlNullableFieldDefinition("VARCHAR", true, 50), block: new SqlNullableFieldDefinition("VARCHAR", false, 100), signature: new SqlNullableFieldDefinition("VARCHAR", false, 100), endpoints: new SqlNullableFieldDefinition("JSON", true), raw: new SqlNullableFieldDefinition("TEXT", false), - nonWoT: new SqlNullableFieldDefinition("BOOLEAN", false), + nonWoT: new SqlNullableFieldDefinition("BOOLEAN", true), }, getSqliteDB );