We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dab2f84 commit c796eccCopy full SHA for c796ecc
src/Auth/UsesRoles.php
@@ -35,7 +35,7 @@ public function assign($role): bool
35
$roleKey = Config::get('roles.key');
36
37
if (!($this->data[$roleKey] ?? null)) {
38
- $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();
39
}
40
41
try {
0 commit comments