Fix data for system fields on collection creation

This commit is contained in:
rijkvanzanten
2020-07-31 17:02:17 -04:00
parent 5cdb317da1
commit 2bcea9de9a

View File

@@ -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',
},
});
}