function up up(db: DatabaseSync): void Run once by runMigrations. It doesn't scan the notes and comments already posted, so their links are recorded only once they are edited. Parameters db: DatabaseSync Return Type void