defaults before notnulls

This commit is contained in:
Robert Lechte 2020-08-01 16:33:27 +10:00
parent 2adbe8e0aa
commit fc46fab066
4 changed files with 9 additions and 9 deletions

View File

@ -14,7 +14,7 @@ python = "*"
sqlbag = "*"
six = "*"
# schemainspect = {path="../schemainspect"}
schemainspect = ">=0.1.1595673757"
schemainspect = ">=0.1.1596263228"
psycopg2-binary = { version="*", optional = true }
[tool.poetry.dev-dependencies]

View File

@ -100,14 +100,14 @@ alter table "public"."products" alter column "name" drop not null;
alter table "public"."products" alter column "name" set data type text using "name"::text;
alter table "public"."products" alter column "price" set not null;
alter table "public"."products" alter column "price" set default 100;
alter table "public"."products" alter column "product_no" set not null;
alter table "public"."products" alter column "price" set not null;
alter table "public"."products" alter column "product_no" set default nextval('products_product_no_seq'::regclass);
alter table "public"."products" alter column "product_no" set not null;
alter table "public"."products" alter column "x" drop default;
alter table "public"."products" alter column "x" drop not null;

View File

@ -96,14 +96,14 @@ alter table "public"."products" alter column "name" drop not null;
alter table "public"."products" alter column "name" set data type text using "name"::text;
alter table "public"."products" alter column "price" set not null;
alter table "public"."products" alter column "price" set default 100;
alter table "public"."products" alter column "product_no" set not null;
alter table "public"."products" alter column "price" set not null;
alter table "public"."products" alter column "product_no" set default nextval('products_product_no_seq'::regclass);
alter table "public"."products" alter column "product_no" set not null;
alter table "public"."products" alter column "x" drop default;
alter table "public"."products" alter column "x" drop not null;

View File

@ -17,10 +17,10 @@ alter table "public"."gen" add column "adding" integer generated always as (1) s
alter table "public"."gen" add column "removing" integer;
alter table "public"."identchanges" alter column "c" set not null;
alter table "public"."identchanges" alter column "c" drop default;
alter table "public"."identchanges" alter column "c" set not null;
alter table "public"."identchanges" alter column "c" add generated by default as identity;
alter table "public"."identchanges" alter column "d" set generated by default;