mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: migration handle default and requried attributes
This commit is contained in:
@@ -660,6 +660,10 @@ class V11 extends Migration
|
||||
|
||||
$size = $type === Database::VAR_STRING ? 65_535 : 0; // Max size of text in MariaDB
|
||||
|
||||
if ($required) {
|
||||
$default = null;
|
||||
}
|
||||
|
||||
$attributes[$key] = [
|
||||
'$collection' => $collectionId,
|
||||
'$id' => $id,
|
||||
|
||||
Reference in New Issue
Block a user