<commit_before><?php
namespace Concrete\Core\Updater\Migrations\Migrations;

use Concrete\Core\Updater\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

class Version20170505000000 extends AbstractMigration
{
    public function up(Schema $schema)
    {
        $this->refreshDatabaseTables(['Stacks']);
    }

    public function down(Schema $schema)
    {
    }
}<commit_msg>Using the schema object for migration as intended<commit_after><?php
namespace Concrete\Core\Updater\Migrations\Migrations;

use Concrete\Core\Updater\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

class Version20170505000000 extends AbstractMigration
{
    public function up(Schema $schema)
    {
        $stacks = $schema->getTable('Stacks');
        if ($stacks->hasColumn('siteTreeID')) {
            $stacks->dropColumn('siteTreeID');
        }
    }

    public function down(Schema $schema)
    {
    }
}
{'fraction_non_alphanumeric': 0.10978260869565218, 'fraction_numerical': 0.030434782608695653, 'mean_word_length': 3.873015873015873, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6203255', 'n_tokens_mistral': 296, 'n_tokens_neox': 282, 'n_words': 51}