19 lines
421 B
Zig
19 lines
421 B
Zig
const std = @import("std");
|
|
const jetquery = @import("jetquery");
|
|
const t = jetquery.schema.table;
|
|
|
|
pub fn up(repo: anytype) !void {
|
|
try repo.createTable(
|
|
"mastersongs",
|
|
&.{
|
|
t.primaryKey("id", .{}),
|
|
t.column("name", .string, .{}),
|
|
t.timestamps(.{}),
|
|
},
|
|
.{},
|
|
);
|
|
}
|
|
|
|
pub fn down(repo: anytype) !void {
|
|
try repo.dropTable("mastersongs", .{});
|
|
}
|