"explicitemptystring" character varying DEFAULT '',
-- Hello emptytagdef
"emptytagdef" character varying DEFAULT '',
- "another_id" integer DEFAULT '2',
+ "another_id" integer DEFAULT 2,
"timest" timestamp,
PRIMARY KEY ("id"),
- CONSTRAINT "emailuniqueindex" UNIQUE ("email")
+ CONSTRAINT "emailuniqueindex" UNIQUE ("email"),
+ CONSTRAINT "very_long_index_name_on_title_field_which_should_be_truncated_for_various_rdbms" UNIQUE ("title")
);
CREATE INDEX "titleindex" on "Basic" ("title");
DROP TABLE "Another" CASCADE;
CREATE TABLE "Another" (
"id" serial NOT NULL,
+ "num" numeric(10,2),
PRIMARY KEY ("id")
);
ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id")
REFERENCES "Another" ("id") DEFERRABLE;
-CREATE TRIGGER foo_trigger after insert ON Basic update modified=timestamp();;
-
-CREATE TRIGGER bar_trigger before insert or update ON Basic update modified2=timestamp();;
-
-select foo from bar
SQL