I am NOT an expert on earthquakes and old foundations, but I do know a few things. And I've attended a few classes that taught me things.
First, an ever so brief history. In Portland, our old houses were built on concrete foundations made of cement combined with river rock and sand. The aggregate (rocky stuff) was not washed, and thus the cement mixture didn't adhere well, and there were often larger rocks and gravel. These foundations were usually covered with a skim coat to protect the foundation and for a more uniform look. By the late 1930's and in part due to construction as a result of the war, concrete foundation practices improved greatly. Not all builders adopted the new fangled ways quickly, so it really wasn't until the early 1940's that the quality of foundations was consistently better.
When looking at an old foundation, here are a few tips. If you can see lines on the concrete the width of lumber, you are most likely looking at the actual foundation, the lines being the imprint of the form boards for the foundation. If it is smooth, with no lines, you are most likely looking at a skim coat, covering the actual foundation. A weak foundation can have a pretty skim coat. An awful foundation will most likely have a peeling or failing skim coat. And, just because you see metal ties and braces at the structural beams and supports, don't assume all is good. Or in other words, beware of pretty hardware.
Vertical cracks in a foundation aren't thought to be an issue. Horizontal cracks can lead to a hinging effect, where the foundation (in an earthquake) folds on itself.
With a higher quality foundation one has the option to tie the house to the foundation. And there are some decent pre-1940's foundations as the timeline is an estimate. Best practice is to have a core sample tested; looking for 2000psi strength or better, to justify the retrofit of tying the foundation to the house. The foundation core test costs around $1000.
If the foundation is found be in good enough shape, tying the house, to the perimeter foundation AND installing bracing/tying hardware to the support posts and beams can be a good way to go. Even better would be to also install some braced wall panels and continuous sheathing mentioned below.
If the core sample shows a poor foundation, replacement may be your best option. Constructions costs vary, but the average cost of a new foundation , 120 linear feet, would be about $80,000. As often is the case with remodel projects, beware of the "while we are at it" budget. "While we're putting in that new foundation, let's add a bathroom down there and at least provide for a future apartment".
If $80,000 seems a bit high, at least consider installing an earthquake valve at your gas meter. This valve, when it experiences shaking, will automatically close the gas line. Remember, the 1906 San Francisco quake didn't do all that much damage. It was the fires that came after. The gas line valve is a very inexpensive fix, and can prevent a lot of harm. They cost somewhere around $500.
In 1976, building codes were written to include attaching the house to the foundation, and other stabilization techniques. These were primarily about the affect of wind on a building. It wasn't until 1998 that building codes addressed earthquakes and foundations. The Loma Prieta Quake, which hit Central and Northern California in 1989 and the Northridge quake, which hit Southern California in 1994 provided plenty of field data leading to the 1998 code changes. The Loma Prieta quake especially, contributed to the "prescriptive path" method of "earthquaking" buildings. This approach uses braced wall panels, continuous sheathing AND tie down anchors to help a building resist both wind and earthquakes. Wind often brings lift, or vertical forces to a structure, whereas most earthquakes bring lateral forces.
Earthquake insurance can be a good thing. Read the fine print. Often, the deductible applies to each type of claim; house damage, fire damage personal property loss, instead of to the whole loss. So if deductible is 10% you pay 10% for personal property, 10% for house etc. Still useful, but good to know the limitations.
Have you had your house "earthquake"? If so, what work was done? Do you carry earthquake insurance?