Gatsu to re-enable via the database, select the settings table. You'll see a row called extensions_enabled, which is a JSON array. Add flarum-likes to this array, paying special attention to the syntax, make sure you insert " and , in the correct places.
A php flarum migrate also could help, just in case