TechnicPack / TechnicSolder

PHP web app that brings differential updates to the Technic Launcher and Technic Platform
https://docs.solder.io/
Other
169 stars 167 forks source link

Mod-versions not addable #542

Closed Stautob closed 8 years ago

Stautob commented 8 years ago

At least for me, I could not add any mod-versions. This was caused by the table "modversion" somehow lacking the "filesize" column. I solved this by adding the column to the table. And I think it could be permanently fixed by adding $table->integer('filesize'); to this code block:

public function up()
{
    Schema::create('modversions', function ($table) {
        $table->increments('id');
        $table->integer('mod_id');
        $table->string('version');
        $table->string('md5');
        $table->timestamps();
    });
}

This code block is located in this file https://github.com/TechnicPack/TechnicSolder/blob/19ee2018081c8875112063faa9666b21c7352361/app/database/migrations/2013_02_20_035755_create_modversions_table.php

I have not tested this fix, it's just an idea!

I'm currently using the pre-migrated SQLite DB.

Stautob commented 8 years ago

Was duplicate of #523