mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: format code and ensure consistent import/export statements across migration and mobile app files
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class MigrationName1760345757975 implements MigrationInterface {
|
||||
public name = 'MigrationName1760345757975'
|
||||
public name = "MigrationName1760345757975";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "WhatsAppLog" ADD "whatsAppMessageId" character varying(100)`);
|
||||
await queryRunner.query(`CREATE INDEX "IDX_2090742b9abffadde19dab2026" ON "WhatsAppLog" ("whatsAppMessageId") `);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`DROP INDEX "public"."IDX_2090742b9abffadde19dab2026"`);
|
||||
await queryRunner.query(`ALTER TABLE "WhatsAppLog" DROP COLUMN "whatsAppMessageId"`);
|
||||
}
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "WhatsAppLog" ADD "whatsAppMessageId" character varying(100)`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX "IDX_2090742b9abffadde19dab2026" ON "WhatsAppLog" ("whatsAppMessageId") `,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`DROP INDEX "public"."IDX_2090742b9abffadde19dab2026"`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "WhatsAppLog" DROP COLUMN "whatsAppMessageId"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,5 +355,5 @@ export default [
|
||||
MigrationName1759232954703,
|
||||
RenameUserTwoFactorAuthToUserTotpAuth1759234532998,
|
||||
MigrationName1759943124812,
|
||||
MigrationName1760345757975
|
||||
MigrationName1760345757975,
|
||||
];
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import 'react-native-get-random-values';
|
||||
import "react-native-get-random-values";
|
||||
import React from "react";
|
||||
import { Text, View } from "react-native";
|
||||
import "./global.css"
|
||||
|
||||
export default function App(): React.ReactElement {
|
||||
import "./global.css";
|
||||
|
||||
export default function App(): React.ReactElement {
|
||||
return (
|
||||
<View className="flex-1 items-center justify-center bg-white">
|
||||
<Text className="text-xl font-bold text-blue-500">
|
||||
|
||||
@@ -27,4 +27,4 @@ const Styles: StylesType = StyleSheet.create<StylesType>({
|
||||
},
|
||||
});
|
||||
|
||||
export default Styles;
|
||||
export default Styles;
|
||||
|
||||
2
MobileApp/nativewind-env.d.ts
vendored
2
MobileApp/nativewind-env.d.ts
vendored
@@ -1 +1 @@
|
||||
/// <reference types="nativewind/types" />
|
||||
/// <reference types="nativewind/types" />
|
||||
|
||||
Reference in New Issue
Block a user