-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove charset property from lrc_content column fix unit tests
- Loading branch information
Showing
11 changed files
with
7,260 additions
and
80,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
/** | ||
* This migration is to add custom codec for search | ||
* in the database for Arabic language see this link for more info | ||
* https://shorturl.at/4rnrf | ||
*/ | ||
export class AddCustomCodecForSearch1727195723850 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
queryRunner.query( | ||
`ALTER TABLE reciter MODIFY name_arabic VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_arabic_ci;`, | ||
); | ||
|
||
queryRunner.query( | ||
`ALTER TABLE verse MODIFY vers TEXT CHARACTER SET utf8 COLLATE utf8_arabic_ci;`, | ||
); | ||
|
||
queryRunner.query( | ||
`ALTER TABLE surah MODIFY name_arabic VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_arabic_ci;`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> {} | ||
} |
Oops, something went wrong.