Skip to content

Commit

Permalink
update question titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Janderson Souza Matias authored and Janderson Souza Matias committed Sep 29, 2023
1 parent 6fbb95c commit 30b2d74
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coachappsl",
"version": "0.0.22",
"version": "0.0.23",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down
21 changes: 21 additions & 0 deletions src/database/migrations/08.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {SQLiteDatabase} from 'react-native-sqlite-storage';
import {getDBConnection} from '../../services/database.service';

export const runMigrationV7 = async () => {
const db = await getDBConnection();
await updateQuestions(db);
};

const updateQuestions = async (db: SQLiteDatabase) => {
await db.executeSql(`
UPDATE question
SET title = 'The teacher does not treat any gender group unfairly in the classroom'
WHERE id = '6779b8e9-da1d-4c3a-8691-53c6233a914d'
`);

await db.executeSql(`
UPDATE question
SET title = ' The teacher monitors most students during independent/group work'
WHERE id = '21ab1281-4d6a-4d9c-850b-5b852fff7c01'
`);
};

0 comments on commit 30b2d74

Please sign in to comment.