graphql-engine/docs/examples_schema_migrations/1530867387731_create_table_public_article.up.yaml
2018-09-11 16:41:24 +05:30

11 lines
406 B
YAML

- args:
sql: CREATE TABLE public."article"("id" serial NOT NULL, "title" text NOT NULL,
"content" text NOT NULL, "rating" integer NOT NULL, "author_id" integer NOT
NULL, "is_published" boolean NOT NULL DEFAULT true, "published_on" date NOT
NULL DEFAULT CURRENT_DATE, PRIMARY KEY ("id") )
type: run_sql
- args:
name: article
schema: public
type: add_existing_table_or_view