diesel instead of sea-orm
sea-orm was getting to be bigger hassle I think and harder to compile, diesel seems simple and effective enough.
This commit is contained in:
parent
d308bd33b2
commit
37a2dbd986
12 changed files with 165 additions and 1766 deletions
0
src/rust/migrations/.keep
Normal file
0
src/rust/migrations/.keep
Normal file
|
@ -0,0 +1 @@
|
|||
-- This file should undo anything in `up.sql`
|
5
src/rust/migrations/2023-04-04-164359_library-db/up.sql
Normal file
5
src/rust/migrations/2023-04-04-164359_library-db/up.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS 'songs' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'lyrics' TEXT, 'author' TEXT, 'ccli' TEXT, 'audio' TEXT, 'vorder' TEXT, 'background' TEXT, 'backgroundType' TEXT, horizontalTextAlignment, verticalTextAlignment, font TEXT, fontSize INTEGER, PRIMARY KEY(id));
|
||||
CREATE TABLE IF NOT EXISTS 'videos' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'filePath' TEXT NOT NULL, startTime REAL, endTime REAL, loop BOOLEAN NOT NULL DEFAULT 0, PRIMARY KEY(id));
|
||||
CREATE TABLE IF NOT EXISTS 'images' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'filePath' TEXT NOT NULL, PRIMARY KEY(id));
|
||||
CREATE TABLE IF NOT EXISTS 'presentations' ( 'id' INTEGER NOT NULL, 'title' TEXT NOT NULL, 'filePath' TEXT NOT NULL, pageCount INTEGER DEFAULT 1, PRIMARY KEY(id));
|
Loading…
Add table
Add a link
Reference in a new issue