Skip to content

Commit 056d936

Browse files
Copilotwhyour
andcommitted
Add database migration for isPinned column in Envs table
Co-authored-by: whyour <[email protected]>
1 parent f1d4f21 commit 056d936

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

back/loaders/db.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export default async () => {
5656
try {
5757
await sequelize.query('alter table Crontabs add column task_after TEXT');
5858
} catch (error) {}
59+
try {
60+
await sequelize.query('alter table Envs add column isPinned NUMBER');
61+
} catch (error) {}
5962

6063
Logger.info('✌️ DB loaded');
6164
} catch (error) {

0 commit comments

Comments
 (0)