-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathsql.js
More file actions
78 lines (75 loc) · 2.36 KB
/
Copy pathsql.js
File metadata and controls
78 lines (75 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
export default [
{
version: 1,
script: `
create table context
(
id INTEGER not null
constraint context_pk
primary key autoincrement,
key TEXT,
val TEXT
);
insert into context (key, val) values ('db_version', '1');
create table f2f_model
(
id INTEGER
constraint f2f_model_pk
primary key autoincrement,
name TEXT,
video_path TEXT,
audio_path TEXT,
voice_id INTEGER,
created_at INTEGER
);
create table video
(
id INTEGER
constraint video_result_pk
primary key autoincrement,
file_path TEXT,
status TEXT,
message TEXT,
model_id INTEGER,
audio_path TEXT,
param INTEGER,
code TEXT,
created_at INTEGER,
progress INTEGER default 0,
name TEXT,
duration INTEGER,
text_content TEXT
);
`
},
{
version: 2,
script: `create table voice
(
id INTEGER
constraint tts_train_task_pk
primary key autoincrement,
origin_audio_path TEXT,
lang TEXT,
asr_format_audio_url TEXT,
reference_audio_text TEXT,
created_at INTEGER
);
`
},
{
version: 3,
script: `alter table video
add voice_id integer;
`
},
{
version: 4,
script: `
alter table f2f_model
add is_image integer default 0;
alter table f2f_model
add cover_path text;
`
}
]