improvement: set project delete protection to false by default

This commit is contained in:
Scott Wilson
2025-04-17 09:16:36 -07:00
parent e1016f0a8b
commit 886cc9a113

View File

@@ -6,7 +6,7 @@ export async function up(knex: Knex): Promise<void> {
const hasCol = await knex.schema.hasColumn(TableName.Project, "hasDeleteProtection"); const hasCol = await knex.schema.hasColumn(TableName.Project, "hasDeleteProtection");
if (!hasCol) { if (!hasCol) {
await knex.schema.alterTable(TableName.Project, (t) => { await knex.schema.alterTable(TableName.Project, (t) => {
t.boolean("hasDeleteProtection").defaultTo(true); t.boolean("hasDeleteProtection").defaultTo(false);
}); });
} }
} }