mirror of
https://github.com/directus/directus.git
synced 2026-01-29 22:08:05 -05:00
@@ -99,8 +99,9 @@ async function createTables(database: Knex) {
|
||||
if (columnInfo.default !== undefined) {
|
||||
let defaultValue = columnInfo.default;
|
||||
|
||||
if (isObject(defaultValue) || Array.isArray(defaultValue))
|
||||
if (isObject(defaultValue) || Array.isArray(defaultValue)) {
|
||||
defaultValue = JSON.stringify(defaultValue);
|
||||
}
|
||||
|
||||
if (defaultValue === '$now') {
|
||||
defaultValue = database!.fn.now();
|
||||
|
||||
Reference in New Issue
Block a user