File tree 4 files changed +17
-1
lines changed
4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,14 @@ bar.com => DeploymentBAR
106
106
## ** Deployment**
107
107
- app_id COMPOSITE
108
108
- deploy_id PRIMARY COMPOSITE
109
- - created_on
109
+ - timestamp
110
+ - sid
111
+ - cid
110
112
111
113
## ** Application**
112
114
- app_id
113
115
- owner_id
116
+ - domain_id
114
117
- permissions
115
118
116
119
(app_id, deploy_id)
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { domains_create } from './migrations/04_domains_create';
10
10
import { deployments_date } from './migrations/05_deployments_date' ;
11
11
import { sites_deprecate } from './migrations/06_sites_deprecate' ;
12
12
import { owner_indexing } from './migrations/07_owner_indexing' ;
13
+ import { domain_ownership } from './migrations/08_domain_ownership' ;
13
14
14
15
export type MigrationState = {
15
16
instance_id : string ;
@@ -87,4 +88,6 @@ export const Migrations: Migration<undefined>[] = [
87
88
sites_deprecate ,
88
89
// Index data types by owner
89
90
owner_indexing ,
91
+ // Alter domain ownership
92
+ domain_ownership ,
90
93
] ;
Original file line number Diff line number Diff line change
1
+ import { ApplicationV2 } from '../../types/Application.type' ;
2
+ import { Migration } from '../migrations' ;
3
+
4
+ export const domain_ownership : Migration < {
5
+ applications : ApplicationV2 ;
6
+ } > = async ( database ) => {
7
+ await database . raw ( 'alter table applications add domain_id bigint;' ) ;
8
+ } ;
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ export type ApplicationV1 = {
8
8
[ user_id : Snowflake ] : PermissionsBit ;
9
9
} ;
10
10
} ;
11
+
12
+ export type ApplicationV2 = ApplicationV1 & { domain_id : Snowflake } ;
You can’t perform that action at this time.
0 commit comments