feat: Add folderId column to the flow model

This commit is contained in:
Faruk AYDIN
2025-01-31 18:22:11 +01:00
parent a9ba8bae83
commit 172eab410b
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
export async function up(knex) {
await knex.schema.table('flows', (table) => {
table.uuid('folder_id').references('id').inTable('folders').index();
});
}
export async function down(knex) {
await knex.schema.table('flows', (table) => {
table.dropIndex('folder_id');
table.dropColumn('folder_id');
});
}