mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 04:14:38 +00:00
Finished migration
This commit is contained in:
@@ -15,6 +15,7 @@ export async function up(knex: Knex): Promise<void> {
|
||||
if (!hasProjectVersionColumn) {
|
||||
await knex.schema.alterTable(TableName.Project, (t) => {
|
||||
t.string("version").defaultTo(ProjectVersion.V1).notNullable();
|
||||
t.text("upgradeStatus").nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -32,6 +33,7 @@ export async function down(knex: Knex): Promise<void> {
|
||||
if (hasProjectVersionColumn) {
|
||||
await knex.schema.alterTable(TableName.Project, (t) => {
|
||||
t.dropColumn("version");
|
||||
t.dropColumn("upgradeStatus");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user