immigrant-generator-postgres 0.2.0

Immigrant migrations generator for postgres SQL dialect
Documentation
!!!TEST table with indexed column
scalar test = sql"TEXT";

table A {
	field: test @index;
};
!!!UPDATE index is dropped
scalar test = sql"TEXT";

table A {
	field: test;
};
!!!UPDATE index is returned back
scalar test = sql"TEXT";

table A {
	field: test @index;
};
!!!UPDATE a name was assigned to the index
scalar test = sql"TEXT";

table A {
	field: test @index "custom_name";
};
!!!RESULT
-- updated: table with indexed column --
CREATE DOMAIN test AS TEXT;
CREATE TABLE "as" (
	field test NOT NULL
);
CREATE INDEX as_field_idx ON "as"(
	field
);
-- updated: index is dropped --
DROP INDEX as_field_idx;
-- updated: index is returned back --
CREATE INDEX as_field_idx ON "as"(
	field
);
-- updated: a name was assigned to the index --
ALTER INDEX as_field_idx RENAME TO custom_name;
-- updated: cleanup schema changes --
DROP TABLE "as";
DROP DOMAIN test;