Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit 99517b6

Browse files
committed
Fix the spell of field annotations
1 parent 2d77191 commit 99517b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A type level annotation with `lang/ddl` namespace will cause ddl to be emitted f
2828
- `@lang/ddl type <THE TYPE>.<PARAMETER>` - Overrites the column's datatype with specified value with a parameter. e.g. `@lang/ddl type varchar.50`
2929
- `@lang/ddl fk <OTHER TYPE>.<FIELD>` - Adds a foreign key constraint
3030
- `@lang/ddl AUTO_INCREMENT true` - Indicates that column should be auto incremented
31-
- `@lang/ddl supress _` - Indicates that a column should not be emitted for this field. Useful when e.g. you want to expose a field that is not sourced as a column of a table.
31+
- `@lang/ddl suppress _` - Indicates that a column should not be emitted for this field. Useful when e.g. you want to expose a field that is not sourced as a column of a table.
3232
- `@doc "<the comment>"` - renders a comment for the corresponding column
3333

3434
## Mapping with umlaut built in dsl

datamodel.umlaut

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Company {
1616
@lang/ddl unique _
1717
}
1818
philosophy: String {
19-
@lang/ddl supress _
19+
@lang/ddl suppress _
2020
}
2121
address: String {
2222
@lang/ddl type varchar.50

src/umlaut/generators/ddl/mysql.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
(defn map-column-type [field-def umlaut]
4040
(when-not (seq (some->> (get-in field-def [:field-annotations :others])
41-
(annotations-by-space-key "supress")))
41+
(annotations-by-space-key "suppress")))
4242
(or (let [type-annot-val (some->> (get-in field-def [:field-annotations :others])
4343
(annotations-by-space-key "type")
4444
first

0 commit comments

Comments
 (0)