mirror of
https://github.com/directus/directus.git
synced 2026-02-10 13:25:38 -05:00
Fix data for system fields on collection creation
This commit is contained in:
@@ -342,6 +342,7 @@ export default defineComponent({
|
||||
if (systemFields[3].enabled === true) {
|
||||
fields.push({
|
||||
field: systemFields[3].name,
|
||||
type: 'timestamp',
|
||||
system: {
|
||||
special: 'datetime_created',
|
||||
interface: 'datetime-created',
|
||||
@@ -349,15 +350,13 @@ export default defineComponent({
|
||||
hidden: true,
|
||||
width: 'full',
|
||||
},
|
||||
database: {
|
||||
type: 'DATETIME',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (systemFields[4].enabled === true) {
|
||||
fields.push({
|
||||
field: systemFields[4].name,
|
||||
type: 'uuid',
|
||||
system: {
|
||||
special: 'user_updated',
|
||||
interface: 'user-updated',
|
||||
@@ -369,15 +368,13 @@ export default defineComponent({
|
||||
hidden: true,
|
||||
width: 'full',
|
||||
},
|
||||
database: {
|
||||
type: 'INT',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (systemFields[5].enabled === true) {
|
||||
fields.push({
|
||||
field: systemFields[5].name,
|
||||
type: 'timestamp',
|
||||
system: {
|
||||
special: 'datetime_updated',
|
||||
interface: 'datetime-updated',
|
||||
@@ -385,9 +382,6 @@ export default defineComponent({
|
||||
hidden: true,
|
||||
width: 'full',
|
||||
},
|
||||
database: {
|
||||
type: 'DATETIME',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user