sun-pc-linux 1 сар өмнө
parent
commit
57d50830e8

+ 1 - 5
pack-nrhe/mongo-migrations/1_users.down.json

@@ -11,9 +11,5 @@
              "limit" : 1
            }
         ]
-     },
-     {
-      "dropIndex": "users",
-      "key": { "loginName": 1 }
-  }
+     }
 ]

+ 15 - 18
pack-nrhe/mongo-migrations/1_users.up.json

@@ -1,22 +1,19 @@
 [
     {
         "insert": "users",
-        "documents": [ {
-            "_id": {
-                "$oid": "637dde15ad5446a2050456f1"
-            },
-            "nid": "管理员",
-            "loginName": "admin",
-            "avatar": "",
-            "password": "e10adc3949ba59abbe56e057f20f883e",
-            "roles": ["admin"],
-            "updateTime": "2024-10-15T08:47:05.583Z",
-            "createTime": "2024-10-15T08:47:05.583Z"
-        }]
-     },
-     {
-        "createIndex": "users",
-        "key": { "loginName": 1 },
-        "options": { "unique": true }
+        "documents": [
+            {
+                "_id": {
+                    "$oid": "637dde15ad5446a2050456f1"
+                },
+                "nid": "管理员",
+                "loginName": "admin",
+                "avatar": "",
+                "password": "e10adc3949ba59abbe56e057f20f883e",
+                "roles": ["admin"],
+                "updateTime": "2024-10-15T08:47:05.583Z",
+                "createTime": "2024-10-15T08:47:05.583Z"
+            }
+        ]
     }
-]
+]