It depends on the type of bankruptcy. However, first of all it should be noted that although credit card debt is unsecured, once a judgement is obtained it can attach to the debtor's property (ie a lien on a house, for example).
As for the bankruptcy, if a Chapter 7 is filed and there are no assets or all your assets are exempt, the judgment can't be collected against you personally, although it may still appear on your record. If there are non-exempt assets, the judgment might be collected against those assets because although you get a personal discharge that would not lift any liens against the property itself. That might require a separate state court case a year later (the debtor files a petition under Section 522 of the bankruptcy code to remove the lien).
In a Chapter 13, you may have to pay some or all of the judgment, depending on your financial circumstances, but any payment would be stretched out over time. However, outside of filing bankruptcy, even with a judgment, some creditors might settle the debt for a lump sum payment.






