mirror of
https://github.com/djrobstep/migra.git
synced 2024-10-10 12:17:34 +03:00
defaults before notnulls
This commit is contained in:
parent
2adbe8e0aa
commit
fc46fab066
@ -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]
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user