Skip to content

Commit c796ecc

Browse files
committed
fix: remove default
1 parent dab2f84 commit c796ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/UsesRoles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function assign($role): bool
3535
$roleKey = Config::get('roles.key');
3636

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

4141
try {

0 commit comments

Comments
 (0)