From 415a2439153adddd437798ea3f36cdd05210e3ca Mon Sep 17 00:00:00 2001 From: Kasper Date: Sun, 9 Aug 2026 06:15:06 +0200 Subject: [PATCH] Rename column `type` to `kind` --- src-native/migrate.rs | 6 +++--- src-native/migrations/1_start.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src-native/migrate.rs b/src-native/migrate.rs index 2553232..2b7d9b3 100644 --- a/src-native/migrate.rs +++ b/src-native/migrate.rs @@ -226,7 +226,7 @@ async fn insert_library_into_db( sqlx::query( " INSERT INTO track_lists - (id, type, name, description, created_at) + (id, kind, name, description, created_at) VALUES (?, ?, ?, ?, ?) ", ) @@ -246,7 +246,7 @@ async fn insert_library_into_db( sqlx::query( " INSERT INTO track_lists - (id, type, parent_id, item_index, name, description, liked, disliked, + (id, kind, parent_id, item_index, name, description, liked, disliked, imported_from, original_id, imported_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ", @@ -274,7 +274,7 @@ async fn insert_library_into_db( sqlx::query( " INSERT INTO track_lists - (id, type, parent_id, item_index, name, description, liked, disliked, + (id, kind, parent_id, item_index, name, description, liked, disliked, imported_from, original_id, imported_at, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ", diff --git a/src-native/migrations/1_start.sql b/src-native/migrations/1_start.sql index 08e922f..a7814d0 100644 --- a/src-native/migrations/1_start.sql +++ b/src-native/migrations/1_start.sql @@ -73,7 +73,7 @@ CREATE TABLE skips_imported ( CREATE TABLE track_lists ( id TEXT PRIMARY KEY NOT NULL, - type TEXT NOT NULL CHECK (type IN ('playlist', 'folder', 'special')), + kind TEXT NOT NULL CHECK (kind IN ('playlist', 'folder', 'special')), parent_id TEXT NULL REFERENCES track_lists(id), item_index INTEGER NULL, name TEXT NOT NULL, -- 2.51.2