- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
30 lines
805 B
TypeScript
30 lines
805 B
TypeScript
import type { ExpoSQLiteDatabase } from "./driver.js";
|
|
interface MigrationConfig {
|
|
journal: {
|
|
entries: {
|
|
idx: number;
|
|
when: number;
|
|
tag: string;
|
|
breakpoints: boolean;
|
|
}[];
|
|
};
|
|
migrations: Record<string, string>;
|
|
}
|
|
export declare function migrate<TSchema extends Record<string, unknown>>(db: ExpoSQLiteDatabase<TSchema>, config: MigrationConfig): Promise<void>;
|
|
interface State {
|
|
success: boolean;
|
|
error?: Error;
|
|
}
|
|
export declare const useMigrations: (db: ExpoSQLiteDatabase<any>, migrations: {
|
|
journal: {
|
|
entries: {
|
|
idx: number;
|
|
when: number;
|
|
tag: string;
|
|
breakpoints: boolean;
|
|
}[];
|
|
};
|
|
migrations: Record<string, string>;
|
|
}) => State;
|
|
export {};
|