Skip to content

Commit e799571

Browse files
committed
0.3/2014-09-17--country_slug.xml: fix slug generation.
Replace spaces by hyphens. Correction for 9301202 commit.
1 parent 05ab1e5 commit e799571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/liquibase/version/0.3/2014-09-17--country_slug.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<comment>Sets value of slug field to value of name field in lower case</comment>
1919

2020
<update tableName="countries">
21-
<column name="slug" valueComputed="LOWER(name)" />
21+
<column name="slug" valueComputed="LOWER(REPLACE(name, ' ', '-'))" />
2222
</update>
2323

2424
</changeSet>

0 commit comments

Comments
 (0)