) or die $sqlt->error;
is($sql, << "SQL");
-DROP TABLE "Basic";
+DROP TABLE "Basic" CASCADE;
CREATE TABLE "Basic" (
"id" serial NOT NULL,
"title" character varying(100) DEFAULT 'hello' NOT NULL,
CREATE INDEX "titleindex" on "Basic" ("title");
-DROP TABLE "Another";
+DROP TABLE "Another" CASCADE;
CREATE TABLE "Another" (
"id" serial NOT NULL,
PRIMARY KEY ("id")
);
ALTER TABLE "Basic" ADD FOREIGN KEY ("another_id")
- REFERENCES "Another" ("id");
+ REFERENCES "Another" ("id") DEFERRABLE;
SQL