Skip to content

Commit

Permalink
fix: remove default
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Feb 6, 2025
1 parent dab2f84 commit c796ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/UsesRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function assign($role): bool
$roleKey = Config::get('roles.key');

if (!($this->data[$roleKey] ?? null)) {
$this->db->query('ALTER TABLE ' . Config::get('db.table') . " ADD COLUMN $roleKey TEXT NOT NULL DEFAULT '[]'")->execute();
$this->db->query('ALTER TABLE ' . Config::get('db.table') . " ADD COLUMN $roleKey TEXT NOT NULL")->execute();
}

try {
Expand Down

0 comments on commit c796ecc

Please sign in to comment.