mirror of
https://github.com/Budibase/budibase.git
synced 2026-08-30 17:10:26 +08:00
Rename
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@
|
||||
"postinstall": "husky install",
|
||||
"submodules:load": "git submodule init && git submodule update && yarn",
|
||||
"submodules:unload": "git submodule deinit --all && yarn",
|
||||
"add-app-migration": "node scripts/add-app-migration.js --title"
|
||||
"add-workspace-migration": "node scripts/add-workspace-migration.js --title"
|
||||
},
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
|
||||
@@ -10,5 +10,5 @@ A migration system has been created in order to modify existing apps when breaki
|
||||
|
||||
In order to add a new migration:
|
||||
|
||||
1. Run `yarn add-app-migration [title]`
|
||||
1. Run `yarn add-workspace-migration [title]`
|
||||
2. Write your code on the newly created file
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file should never be manually modified, use `yarn add-app-migration` in order to add a new one
|
||||
// This file should never be manually modified, use `yarn add-workspace-migration` in order to add a new one
|
||||
|
||||
import { WorkspaceMigration } from "."
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ export default migration
|
||||
.map(m => m.substring(0, m.length - 3))
|
||||
|
||||
let migrationFileContent =
|
||||
'// This file should never be manually modified, use `yarn add-app-migration` in order to add a new one\n\nimport { WorkspaceMigration } from "."\n\n'
|
||||
'// This file should never be manually modified, use `yarn add-workspace-migration` in order to add a new one\n\nimport { WorkspaceMigration } from "."\n\n'
|
||||
|
||||
for (const migration of migrations) {
|
||||
migrationFileContent += `import m${migration} from "./migrations/${migration}"\n`
|
||||
Reference in New Issue
Block a user