2
0
mirror of https://github.com/tenrok/event-scheduling.git synced 2026-06-23 20:40:39 +03:00

feat: update jobs table query

This commit is contained in:
Dipesh Dulal
2021-01-16 10:56:55 +05:45
parent 6ce4db5321
commit 161d071a43
+5 -3
View File
@@ -22,9 +22,11 @@ func initDBConnection() *sql.DB {
func seedDB(db *sql.DB) error { func seedDB(db *sql.DB) error {
log.Print("💾 Seeding database with table...") log.Print("💾 Seeding database with table...")
_, err := db.Exec(` _, err := db.Exec(`
CREATE TABLE IF NOT EXISTS "public"."test" ( CREATE TABLE IF NOT EXISTS "public"."jobs" (
"id" integer NOT NULL, "id" SERIAL PRIMARY KEY,
"name" text NOT NULL "name" varchar(50) NOT NULL,
"payload" text,
"runAt" TIMESTAMP NOT NULL
) )
`) `)
return err return err