mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 15:28:58 +00:00
add slug index
This commit is contained in:
@@ -5,6 +5,7 @@ import { TableName } from "../schemas";
|
|||||||
export async function up(knex: Knex): Promise<void> {
|
export async function up(knex: Knex): Promise<void> {
|
||||||
await knex.schema.alterTable(TableName.Organization, (t) => {
|
await knex.schema.alterTable(TableName.Organization, (t) => {
|
||||||
t.boolean("authEnforced").defaultTo(false);
|
t.boolean("authEnforced").defaultTo(false);
|
||||||
|
t.index("slug");
|
||||||
});
|
});
|
||||||
|
|
||||||
await knex.schema.alterTable(TableName.SamlConfig, (t) => {
|
await knex.schema.alterTable(TableName.SamlConfig, (t) => {
|
||||||
@@ -15,6 +16,7 @@ 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.alterTable(TableName.Organization, (t) => {
|
await knex.schema.alterTable(TableName.Organization, (t) => {
|
||||||
t.dropColumn("authEnforced");
|
t.dropColumn("authEnforced");
|
||||||
|
t.dropIndex("slug");
|
||||||
});
|
});
|
||||||
|
|
||||||
await knex.schema.alterTable(TableName.SamlConfig, (t) => {
|
await knex.schema.alterTable(TableName.SamlConfig, (t) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user