Skip to content

Commit 7b1489b

Browse files
committed
feat: move things around
1 parent a8e80da commit 7b1489b

8 files changed

Lines changed: 4 additions & 4 deletions

migrations/tenants/006_20250717_185508_create_events.down.surql renamed to migrations/others/006_20250717_185508_create_events.down.surql

File renamed without changes.

migrations/tenants/006_20250717_185508_create_events.surql renamed to migrations/others/006_20250717_185508_create_events.surql

File renamed without changes.

migrations/tenants/007_20250717_215624_create_forms.down.surql renamed to migrations/others/007_20250717_215624_create_forms.down.surql

File renamed without changes.

migrations/tenants/007_20250717_215624_create_forms.surql renamed to migrations/others/007_20250717_215624_create_forms.surql

File renamed without changes.

migrations/tenants/004_20250714_175230_create_groups.down.surql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BEGIN TRANSACTION;
55
--------------------------------------------------------------------------------
66

77
REMOVE TABLE IF EXISTS group;
8-
REMOVE TABLE IF EXISTS has_realm;
8+
REMOVE TABLE IF EXISTS in_realm;
99
REMOVE TABLE IF EXISTS member_of;
1010

1111
--------------------------------------------------------------------------------

migrations/tenants/004_20250714_175230_create_groups.surql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ BEGIN TRANSACTION;
66

77
DEFINE TABLE group SCHEMALESS;
88

9+
DEFINE FIELD _definition ON group TYPE string;
910
DEFINE FIELD title ON group TYPE string;
1011
DEFINE FIELD description ON group TYPE option<string>;
11-
DEFINE FIELD _definition ON group TYPE string;
1212
DEFINE FIELD updated_at ON group TYPE datetime VALUE time::now();
1313
DEFINE FIELD created_at ON group TYPE datetime VALUE time::now() READONLY;
1414

@@ -18,7 +18,7 @@ DEFINE TABLE member_of TYPE RELATION FROM person TO group ENFORCED;
1818

1919
--------------------------------------------------------------------------------
2020

21-
DEFINE TABLE has_realm TYPE RELATION FROM group TO realm ENFORCED;
21+
DEFINE TABLE in_realm TYPE RELATION FROM group TO realm ENFORCED;
2222

2323
--------------------------------------------------------------------------------
2424

migrations/tenants/005_20250715_003233_add_sample_fixtures.down.surql renamed to migrations/tenants/010_20250715_003233_add_sample_fixtures.down.surql

File renamed without changes.

migrations/tenants/005_20250715_003233_add_sample_fixtures.surql renamed to migrations/tenants/010_20250715_003233_add_sample_fixtures.surql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RELATE role:main_guest->has_permission->definition:group SET action = "read";
5252
RELATE role:seoulcampus_admin->has_permission->definition:group SET action = "create";
5353

5454
CREATE group:volunteers SET title = "All Volunteers", _definition = "group";
55-
RELATE group:volunteers->has_realm->realm:manila;
55+
RELATE group:volunteers->in_realm->realm:manila;
5656

5757
--------------------------------------------------------------------------------
5858

0 commit comments

Comments
 (0)