File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ interface IndexConfig {
19
19
using ?: 'btree' | 'hash' ;
20
20
21
21
/**
22
- * If set, the index will be created as `create index ... algorythm { 'default' | 'inplace' | 'copy' }`.
22
+ * If set, the index will be created as `create index ... algorithm { 'default' | 'inplace' | 'copy' }`.
23
23
*/
24
- algorythm ?: 'default' | 'inplace' | 'copy' ;
24
+ algorithm ?: 'default' | 'inplace' | 'copy' ;
25
25
26
26
/**
27
27
* If set, adds locks to the index creation.
@@ -67,8 +67,8 @@ export class IndexBuilder implements AnyIndexBuilder {
67
67
return this ;
68
68
}
69
69
70
- algorythm ( algorythm : IndexConfig [ 'algorythm ' ] ) : this {
71
- this . config . algorythm = algorythm ;
70
+ algorithm ( algorithm : IndexConfig [ 'algorithm ' ] ) : this {
71
+ this . config . algorithm = algorithm ;
72
72
return this ;
73
73
}
74
74
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const users = mysqlTable(
53
53
uniqueClass : uniqueIndex ( 'uniqueClass' )
54
54
. on ( users . class , users . subClass )
55
55
. lock ( 'default' )
56
- . algorythm ( 'copy' )
56
+ . algorithm ( 'copy' )
57
57
. using ( `btree` ) ,
58
58
legalAge : check ( 'legalAge' , sql `${ users . age1 } > 18` ) ,
59
59
usersClassFK : foreignKey ( { columns : [ users . subClass ] , foreignColumns : [ classes . subClass ] } ) ,
You can’t perform that action at this time.
0 commit comments