Sfoglia il codice sorgente

Fix nondeterminism error in schema creation.

Kestrel 7 mesi fa
parent
commit
3c77c897f2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      microrm/src/schema/build.rs

+ 1 - 1
microrm/src/schema/build.rs

@@ -172,7 +172,7 @@ pub(crate) fn collect_from_database<DB: Database>() -> DatabaseSchema {
 
                     assoc_table
                         .constraints
-                        .push(format!("UNIQUE(`range`, `domain`)"));
+                        .push(format!("unique(`range`, `domain`)"));
 
                     tables.insert(assoc_table_name.clone(), assoc_table);
                 }