remove notNullable from various tables

This commit is contained in:
Maidul Islam
2024-01-27 12:39:54 +05:30
committed by Akhil Mohan
parent 753a4daf69
commit 249edf98e9
5 changed files with 5 additions and 5 deletions
@@ -27,7 +27,7 @@ export async function up(knex: Knex): Promise<void> {
// t.text("secretKeyHash").notNullable(); // t.text("secretKeyHash").notNullable();
// t.text("secretValueHash"); // t.text("secretValueHash");
// t.text("secretCommentHash"); // t.text("secretCommentHash");
t.text("secretBlindIndex").notNullable(); t.text("secretBlindIndex");
t.text("secretKeyCiphertext").notNullable(); t.text("secretKeyCiphertext").notNullable();
t.text("secretKeyIV").notNullable(); t.text("secretKeyIV").notNullable();
t.text("secretKeyTag").notNullable(); t.text("secretKeyTag").notNullable();
@@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise<void> {
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid()); t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
t.integer("version").defaultTo(1).notNullable(); t.integer("version").defaultTo(1).notNullable();
t.string("type").notNullable().defaultTo(SecretType.Shared); t.string("type").notNullable().defaultTo(SecretType.Shared);
t.text("secretBlindIndex").notNullable(); t.text("secretBlindIndex");
t.text("secretKeyCiphertext").notNullable(); t.text("secretKeyCiphertext").notNullable();
t.text("secretKeyIV").notNullable(); t.text("secretKeyIV").notNullable();
t.text("secretKeyTag").notNullable(); t.text("secretKeyTag").notNullable();
@@ -54,7 +54,7 @@ export async function up(knex: Knex): Promise<void> {
// everything related to secret // everything related to secret
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid()); t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
t.integer("version").defaultTo(1); t.integer("version").defaultTo(1);
t.text("secretBlindIndex").notNullable(); t.text("secretBlindIndex");
t.text("secretKeyCiphertext").notNullable(); t.text("secretKeyCiphertext").notNullable();
t.text("secretKeyIV").notNullable(); t.text("secretKeyIV").notNullable();
t.text("secretKeyTag").notNullable(); t.text("secretKeyTag").notNullable();
@@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise<void> {
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid()); t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
t.integer("version").defaultTo(1).notNullable(); t.integer("version").defaultTo(1).notNullable();
t.string("type").notNullable().defaultTo(SecretType.Shared); t.string("type").notNullable().defaultTo(SecretType.Shared);
t.text("secretBlindIndex").notNullable(); t.text("secretBlindIndex");
t.text("secretKeyCiphertext").notNullable(); t.text("secretKeyCiphertext").notNullable();
t.text("secretKeyIV").notNullable(); t.text("secretKeyIV").notNullable();
t.text("secretKeyTag").notNullable(); t.text("secretKeyTag").notNullable();
@@ -54,7 +54,7 @@ export async function up(knex: Knex): Promise<void> {
// everything related to secret // everything related to secret
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid()); t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
t.integer("version").defaultTo(1); t.integer("version").defaultTo(1);
t.text("secretBlindIndex").notNullable(); t.text("secretBlindIndex");
t.text("secretKeyCiphertext").notNullable(); t.text("secretKeyCiphertext").notNullable();
t.text("secretKeyIV").notNullable(); t.text("secretKeyIV").notNullable();
t.text("secretKeyTag").notNullable(); t.text("secretKeyTag").notNullable();