mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 05:26:11 +00:00
Update 20251018061215_sub-org.ts
This commit is contained in:
@@ -41,6 +41,8 @@ export async function up(knex: Knex): Promise<void> {
|
|||||||
[TableName.Identity, TableName.Membership, AccessScope.Organization]
|
[TableName.Identity, TableName.Membership, AccessScope.Organization]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await knex.raw(`DELETE FROM ?? WHERE "orgId" IS NULL`, [TableName.Identity]);
|
||||||
|
|
||||||
await knex.schema.alterTable(TableName.Identity, (t) => {
|
await knex.schema.alterTable(TableName.Identity, (t) => {
|
||||||
t.uuid("orgId").notNullable().alter();
|
t.uuid("orgId").notNullable().alter();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user