mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-28 05:20:57 +01:00
19 lines
369 B
TypeScript
19 lines
369 B
TypeScript
import type { Migration } from '../migrations.ts';
|
|
|
|
export const migration: Migration = {
|
|
version: 17,
|
|
name: 'Create regex101 cache table',
|
|
|
|
up: `
|
|
CREATE TABLE IF NOT EXISTS regex101_cache (
|
|
regex101_id TEXT PRIMARY KEY,
|
|
response TEXT NOT NULL,
|
|
fetched_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
`,
|
|
|
|
down: `
|
|
DROP TABLE IF EXISTS regex101_cache;
|
|
`
|
|
};
|