Android int null. Postgres change column type. alter table add primary key. sec ide. alter table `allo` add `date` date not null after `image`, add primary key (`date`(10));.