mirror of
https://github.com/directus/directus.git
synced 2026-02-11 17:24:56 -05:00
Add option to auto refresh collections (#4777)
* add auto refresh * add refresh_interval to DB * remove refresh_interval template * set refresh interval default to null * Fix typo in filename * Rename sidebar-auto-refresh to refresh-sidebar-detail * Rename import * Add badge on active refresh, change options * Fix refresh not working on refresh Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export async function up(knex: Knex) {
|
||||
await knex.schema.alterTable('directus_presets', (table) => {
|
||||
table.integer('refresh_interval');
|
||||
});
|
||||
}
|
||||
|
||||
export async function down(knex: Knex) {
|
||||
await knex.schema.alterTable('directus_presets', (table) => {
|
||||
table.dropColumn('refresh_interval');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user