@strapi/database 5.0.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1307,7 +1307,7 @@ const createSchemaDiff = (db) => {
|
|
|
1307
1307
|
const hasChangedStatus = (diff) => diff.status === statuses.CHANGED;
|
|
1308
1308
|
const diffIndexes = (oldIndex, index2) => {
|
|
1309
1309
|
const changes = [];
|
|
1310
|
-
if (
|
|
1310
|
+
if (___default.default.xor(oldIndex.columns, index2.columns).length > 0) {
|
|
1311
1311
|
changes.push("columns");
|
|
1312
1312
|
}
|
|
1313
1313
|
if (oldIndex.type && index2.type && ___default.default.toLower(oldIndex.type) !== ___default.default.toLower(index2.type)) {
|
|
@@ -6433,6 +6433,7 @@ const createPublishedAtColumn = async (db, tableName) => {
|
|
|
6433
6433
|
await db.schema.alterTable(tableName, (table) => {
|
|
6434
6434
|
table.string("published_at");
|
|
6435
6435
|
});
|
|
6436
|
+
await db(tableName).update({ published_at: /* @__PURE__ */ new Date() });
|
|
6436
6437
|
};
|
|
6437
6438
|
const createdPublishedAt = {
|
|
6438
6439
|
name: "5.0.0-04-created-published-at",
|