mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
Feat: Request Access (migrations)
This commit is contained in:
@@ -12,6 +12,7 @@ export async function up(knex: Knex): Promise<void> {
|
|||||||
t.string("secretPath");
|
t.string("secretPath");
|
||||||
|
|
||||||
t.uuid("envId").notNullable();
|
t.uuid("envId").notNullable();
|
||||||
|
t.string("secretPath");
|
||||||
t.foreign("envId").references("id").inTable(TableName.Environment).onDelete("CASCADE");
|
t.foreign("envId").references("id").inTable(TableName.Environment).onDelete("CASCADE");
|
||||||
t.timestamps(true, true, true);
|
t.timestamps(true, true, true);
|
||||||
});
|
});
|
||||||
@@ -34,7 +35,6 @@ export async function up(knex: Knex): Promise<void> {
|
|||||||
export async function down(knex: Knex): Promise<void> {
|
export async function down(knex: Knex): Promise<void> {
|
||||||
await knex.schema.dropTableIfExists(TableName.AccessApprovalPolicyApprover);
|
await knex.schema.dropTableIfExists(TableName.AccessApprovalPolicyApprover);
|
||||||
await knex.schema.dropTableIfExists(TableName.AccessApprovalPolicy);
|
await knex.schema.dropTableIfExists(TableName.AccessApprovalPolicy);
|
||||||
|
|
||||||
await dropOnUpdateTrigger(knex, TableName.AccessApprovalPolicyApprover);
|
await dropOnUpdateTrigger(knex, TableName.AccessApprovalPolicyApprover);
|
||||||
await dropOnUpdateTrigger(knex, TableName.AccessApprovalPolicy);
|
await dropOnUpdateTrigger(knex, TableName.AccessApprovalPolicy);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user