Germany, which lost most of its fleet under the terms of the Versailles treaty, was allowed to keep eight pre-dreadnoughts (of which only six could be in active service at any one time) which were counted as armoured coast-defence ships;[56] two of these were still in use at the beginning of World War II. One of these, Schleswig-Holstein, shelled the Polish Westerplatte peninsula, opening the German invasion of Poland and firing the first shots of the Second World War. Schleswig-Holstein served for most of the war as a training ship; she was sunk while under refit in December 1944, and broken up in situ in January 1945.