2
0
mirror of https://github.com/tenrok/event-scheduling.git synced 2026-06-11 18:02:31 +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 {
log.Print("💾 Seeding database with table...")
_, err := db.Exec(`
CREATE TABLE IF NOT EXISTS "public"."test" (
"id" integer NOT NULL,
"name" text NOT NULL
CREATE TABLE IF NOT EXISTS "public"."jobs" (
"id" SERIAL PRIMARY KEY,
"name" varchar(50) NOT NULL,
"payload" text,
"runAt" TIMESTAMP NOT NULL
)
`)
return err