Update upload page
This commit is contained in:
parent
06fbe78dca
commit
32c89bc12c
9 changed files with 166 additions and 37 deletions
|
|
@ -0,0 +1,22 @@
|
|||
const std = @import("std");
|
||||
const jetquery = @import("jetquery");
|
||||
const t = jetquery.schema.table;
|
||||
|
||||
pub fn up(repo: anytype) !void {
|
||||
try repo.createTable(
|
||||
"raw_scrobbles",
|
||||
&.{
|
||||
t.primaryKey("id", .{}),
|
||||
t.column("track", .string, .{}),
|
||||
t.column("artist", .string, .{}),
|
||||
t.column("album", .string, .{}),
|
||||
t.column("date", .integer, .{}),
|
||||
t.timestamps(.{}),
|
||||
},
|
||||
.{},
|
||||
);
|
||||
}
|
||||
|
||||
pub fn down(repo: anytype) !void {
|
||||
try repo.dropTable("raw_scrobbles", .{});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue