Move coredata outside probo service
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
11
pkg/coredata/migrations/20250225T201106Z.sql
Normal file
11
pkg/coredata/migrations/20250225T201106Z.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE usrmgr_user_organizations (
|
||||
user_id TEXT REFERENCES usrmgr_users(id) NOT NULL,
|
||||
organization_id TEXT NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
PRIMARY KEY (user_id, organization_id)
|
||||
);
|
||||
|
||||
INSERT INTO usrmgr_user_organizations (user_id, organization_id, created_at)
|
||||
SELECT id, organization_id, NOW()
|
||||
FROM usrmgr_users
|
||||
WHERE organization_id IS NOT NULL;
|
||||
Reference in New Issue
Block a user