Move coredata outside probo service
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
10
pkg/coredata/migrations/20250206T121300Z.sql
Normal file
10
pkg/coredata/migrations/20250206T121300Z.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TYPE people_kind AS ENUM (
|
||||
'EMPLOYEE',
|
||||
'CONTRACTOR'
|
||||
);
|
||||
|
||||
ALTER TABLE peoples ADD COLUMN kind people_kind;
|
||||
|
||||
UPDATE peoples SET kind = 'EMPLOYEE';
|
||||
|
||||
ALTER TABLE peoples ALTER COLUMN kind SET NOT NULL;
|
||||
Reference in New Issue
Block a user