Add ssh host command to cli

This commit is contained in:
Tuan Dang
2025-04-07 22:25:37 -07:00
parent 99aa567a6f
commit bf5e8d8c8b
5 changed files with 116 additions and 7 deletions
@@ -17,6 +17,7 @@ export async function up(knex: Knex): Promise<void> {
t.foreign("userSshCaId").references("id").inTable(TableName.SshCertificateAuthority).onDelete("CASCADE");
t.uuid("hostSshCaId").notNullable();
t.foreign("hostSshCaId").references("id").inTable(TableName.SshCertificateAuthority).onDelete("CASCADE");
t.unique(["projectId", "hostname"]);
});
await createOnUpdateTrigger(knex, TableName.SshHost);
}