feat: Implement getStepWithTestExecutions query
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Knex } from "knex";
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export async function up(knex: Knex): Promise<void> {
|
||||
return knex.schema.createTable('steps', (table) => {
|
||||
@@ -7,11 +7,11 @@ export async function up(knex: Knex): Promise<void> {
|
||||
table.string('app_key').notNullable();
|
||||
table.string('type').notNullable();
|
||||
table.integer('connection_id').references('id').inTable('connections');
|
||||
table.text('parameters')
|
||||
table.text('parameters');
|
||||
|
||||
table.timestamps(true, true);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
return knex.schema.dropTable('steps');
|
||||
|
@@ -0,0 +1,15 @@
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export async function up(knex: Knex): Promise<void> {
|
||||
return knex.schema.alterTable('execution_steps', (table) => {
|
||||
table.jsonb('data_in').alter();
|
||||
table.jsonb('data_out').alter();
|
||||
});
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
return knex.schema.alterTable('execution_steps', (table) => {
|
||||
table.text('data_in').alter();
|
||||
table.text('data_out').alter();
|
||||
});
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export async function up(knex: Knex): Promise<void> {
|
||||
return knex.schema.alterTable('steps', (table) => {
|
||||
table.jsonb('parameters').alter();
|
||||
});
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
return knex.schema.alterTable('steps', (table) => {
|
||||
table.text('parameters').alter();
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user