File tree 2 files changed +10
-1
lines changed
packages/backend/src/services/database
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class SqliteDatabaseAccessService extends BaseDatabaseAccessService {
42
42
this . db = new Database ( this . config . path ) ;
43
43
44
44
// Database upgrade logic
45
- const TARGET_VERSION = 14 ;
45
+ const TARGET_VERSION = 15 ;
46
46
47
47
if ( do_setup ) {
48
48
this . log . noticeme ( `SETUP: creating database at ${ this . config . path } ` ) ;
@@ -63,6 +63,7 @@ class SqliteDatabaseAccessService extends BaseDatabaseAccessService {
63
63
'0014_share.sql' ,
64
64
'0015_group.sql' ,
65
65
'0016_group-permissions.sql' ,
66
+ '0017_publicdirs.sql' ,
66
67
] . map ( p => path_ . join ( __dirname , 'sqlite_setup' , p ) ) ;
67
68
const fs = require ( 'fs' ) ;
68
69
for ( const filename of sql_files ) {
@@ -135,6 +136,10 @@ class SqliteDatabaseAccessService extends BaseDatabaseAccessService {
135
136
upgrade_files . push ( '0016_group-permissions.sql' ) ;
136
137
}
137
138
139
+ if ( user_version <= 14 ) {
140
+ upgrade_files . push ( '0017_publicdirs.sql' ) ;
141
+ }
142
+
138
143
if ( upgrade_files . length > 0 ) {
139
144
this . log . noticeme ( `Database out of date: ${ this . config . path } ` ) ;
140
145
this . log . noticeme ( `UPGRADING DATABASE: ${ user_version } -> ${ TARGET_VERSION } ` ) ;
Original file line number Diff line number Diff line change
1
+ ALTER TABLE user ADD COLUMN
2
+ " public_uuid" CHAR (36 ) NULL DEFAULT NULL ;
3
+ ALTER TABLE user ADD COLUMN
4
+ " public_id" INT NULL DEFAULT NULL ;
You can’t perform that action at this time.
0 commit comments