Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Create 20250713154007_test-migration.ts

Daniel Hougaard01054bbae026
diff --git a/backend/src/db/migrations/20250713154007_test-migration.ts b/backend/src/db/migrations/20250713154007_test-migration.ts
new file mode 100644
index 0000000000..d26f446fb0
--- /dev/null
+++ b/backend/src/db/migrations/20250713154007_test-migration.ts
@@ -0,0 +1,15 @@
+import { Knex } from "knex";
+
+import { TableName } from "../schemas";
+
+export async function up(knex: Knex): Promise<void> {
+ await knex.schema.alterTable(TableName.SuperAdmin, (table) => {
+ table.string("test_column").notNullable().defaultTo("test_value");
+ });
+}
+
+export async function down(knex: Knex): Promise<void> {
+ await knex.schema.alterTable(TableName.SuperAdmin, (table) => {
+ table.dropColumn("test_column");
+ });
+}