You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the plugin is installed, we can test it out. Since we have defined a custom field, we'll need to generate and run a migration to add the new column to the database:
626
+
Now that the plugin is installed, we can test it out. Since we have defined a custom field, we'll need to generate and run a migration to add the new column to the database.
627
627
628
-
```bash
629
-
npm run migration:generate wishlist-plugin
630
-
```
628
+
1.**Generate the Migration File**
629
+
630
+
Run the following command to generate a migration file for the `wishlist-plugin`:
631
+
632
+
```bash
633
+
npx vendure migrate wishlist-plugin
634
+
```
635
+
636
+
When prompted, select the "Generate a new migration" option. This will create a new migration file in the `src/migrations` folder.
637
+
638
+
2.**Run the Migration**
639
+
640
+
After generating the migration file, apply the changes to the database by running the same command again:
0 commit comments