Highlight Enum SQL

This commit is contained in:
Alex Macleod 2017-05-12 13:54:10 +01:00
parent 17f2ec5108
commit 9700787bf9

View file

@ -1191,7 +1191,7 @@ exists, err := models.Pilots(db, Where("id=?", 5)).Exists()
If your MySQL or Postgres tables use enums we will generate constants that hold their values If your MySQL or Postgres tables use enums we will generate constants that hold their values
that you can use in your queries. For example: that you can use in your queries. For example:
``` ```sql
CREATE TYPE workday AS ENUM('monday', 'tuesday', 'wednesday', 'thursday', 'friday'); CREATE TYPE workday AS ENUM('monday', 'tuesday', 'wednesday', 'thursday', 'friday');
CREATE TABLE event_one ( CREATE TABLE event_one (