diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-15 19:12:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-15 19:12:01 +0100 |
| commit | 7eb985b616c12aed261fbef74a47c5a928c03e61 (patch) | |
| tree | fe3088dc687c640176bf376b4ca8baf2088bd69f /ui/backend/src/run/migrations.rs | |
| parent | chore(deps): bump cachix/install-nix-action from 20 to 27 (#2268) (diff) | |
| download | atuin-7eb985b616c12aed261fbef74a47c5a928c03e61.zip | |
feat(gui): add runbook list, ability to create and delete, sql storage (#2282)
* wip
* saving works :))
* functioning delete button
* persist selection properly
Diffstat (limited to 'ui/backend/src/run/migrations.rs')
| -rw-r--r-- | ui/backend/src/run/migrations.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/backend/src/run/migrations.rs b/ui/backend/src/run/migrations.rs new file mode 100644 index 00000000..3516e62a --- /dev/null +++ b/ui/backend/src/run/migrations.rs @@ -0,0 +1,13 @@ +use lazy_static::lazy_static; +use tauri_plugin_sql::{Builder, Migration, MigrationKind}; + +pub fn migrations() -> Vec<Migration> { + vec![ + Migration { + version: 1, + description: "create_initial_tables", + sql: "CREATE TABLE runbooks(id string PRIMARY KEY, name TEXT, content TEXT, created bigint, updated bigint);", + kind: MigrationKind::Up, + } + ] +} |
