Generate a migration

Evolve an existing database model. Create a migration with add, remove, rename, or reference to update fields on a database model, automatically applied to the collection in PocketBase. Field definitions reuse the same name:type! syntax as the other generators, so adding a required title:text! or renaming a column is one command away. Useful for iterating on schemas after the initial scaffold.

$ vela generate migration
users auth
  • id* text
  • password* password
  • tokenKey* text
  • email* email
  • emailVisibility bool
  • verified bool
  • name text
  • avatar file
  • created autodate
  • updated autodate
  • birthday date