Merge pull request #3444 from Infisical/default-project-delete-protection-false

Improvement: Set Project Delete Protection to False by Default
This commit is contained in:
Maidul Islam
2025-04-17 12:21:46 -04:00
committed by GitHub

View File

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