pub enum Migrations {
Apply,
ReviewOnly,
}Expand description
Whether auth.migrator() may change the database
(Builder::migrations).
Variants§
Apply
run and apply create and extend fastauth’s tables. The default.
ReviewOnly
The schema belongs to someone else’s migrations, such as Better Auth’s while both apps
share one database. run and apply refuse with ReviewOnly, so nothing
changes the tables behind the other app’s back; plan, sql and
sql_steps still work, so fastauth generate writes each step
as its own migration to review and apply yourself.
Trait Implementations§
Source§impl Clone for Migrations
impl Clone for Migrations
impl Copy for Migrations
Source§impl Debug for Migrations
impl Debug for Migrations
Source§impl Default for Migrations
impl Default for Migrations
impl Eq for Migrations
Source§impl Hash for Migrations
impl Hash for Migrations
Source§impl PartialEq for Migrations
impl PartialEq for Migrations
impl StructuralPartialEq for Migrations
Auto Trait Implementations§
impl Forget for Migrations
impl Freeze for Migrations
impl Move for Migrations
impl RefUnwindSafe for Migrations
impl Send for Migrations
impl Sync for Migrations
impl Unpin for Migrations
impl UnsafeUnpin for Migrations
impl UnwindSafe for Migrations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more