File tree 1 file changed +7
-1
lines changed
packages/backend/src/services/database
1 file changed +7
-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 = 9 ;
45
+ const TARGET_VERSION = 10 ;
46
46
47
47
if ( do_setup ) {
48
48
this . log . noticeme ( `SETUP: creating database at ${ this . config . path } ` ) ;
@@ -57,6 +57,8 @@ class SqliteDatabaseAccessService extends BaseDatabaseAccessService {
57
57
'0008_otp.sql' ,
58
58
'0009_app-prefix-fix.sql' ,
59
59
'0010_add-git-app.sql' ,
60
+ '0011_notification.sql' ,
61
+ '0012_appmetadata.sql' ,
60
62
] . map ( p => path_ . join ( __dirname , 'sqlite_setup' , p ) ) ;
61
63
const fs = require ( 'fs' ) ;
62
64
for ( const filename of sql_files ) {
@@ -109,6 +111,10 @@ class SqliteDatabaseAccessService extends BaseDatabaseAccessService {
109
111
upgrade_files . push ( '0011_notification.sql' ) ;
110
112
}
111
113
114
+ if ( user_version <= 9 ) {
115
+ upgrade_files . push ( '0012_appmetadata.sql' ) ;
116
+ }
117
+
112
118
if ( upgrade_files . length > 0 ) {
113
119
this . log . noticeme ( `Database out of date: ${ this . config . path } ` ) ;
114
120
this . log . noticeme ( `UPGRADING DATABASE: ${ user_version } -> ${ TARGET_VERSION } ` ) ;
You can’t perform that action at this time.
0 commit comments