- Deleted legacy config reference handling functions and related migration scripts to simplify the codebase. - Updated documentation to reflect the removal of legacy YAML paths and configurations. - Adjusted existing YAML management processes to ensure compatibility with the new mustache-style syntax. - Removed tests related to legacy config references, focusing on current functionality and ensuring clarity in the testing suite.
25 lines
625 B
JavaScript
25 lines
625 B
JavaScript
/**
|
|
* @param {import("knex").Knex} knex
|
|
*/
|
|
export async function up(knex) {
|
|
await knex.schema.createTable("script_state", (t) => {
|
|
t.text("namespace").notNullable();
|
|
t.text("key").notNullable();
|
|
t.text("value").notNullable();
|
|
t.text("updated_at").notNullable();
|
|
t.text("expires_at");
|
|
t.primary(["namespace", "key"]);
|
|
});
|
|
|
|
await knex.schema.raw(
|
|
"CREATE INDEX script_state_namespace_updated_at_idx ON script_state (namespace, updated_at DESC)",
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @param {import("knex").Knex} knex
|
|
*/
|
|
export async function down(knex) {
|
|
await knex.schema.dropTableIfExists("script_state");
|
|
}
|