Skip to content

Commit 96ebacc

Browse files
committed
🗃️ remove email_verified field from users
🎨 added new line and updated migration version
1 parent e71a7d1 commit 96ebacc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

internal/db/migrations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// migrationVersion defines the current migration version. This ensures the app
1616
// is always compatible with the version of the database.
17-
const migrationVersion = 1
17+
const migrationVersion = 2
1818

1919
//go:embed migrations/*.sql
2020
var migrations embed.FS
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE users ADD COLUMN email_verified BOOLEAN NOT NULL DEFAULT FALSE;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE users DROP COLUMN email_verified;

0 commit comments

Comments
 (0)