def prepare(self):
        if self.column_name not in self.pks:
            return self.database.execute("""
                ALTER TABLE {parent_table} DROP PRIMARY KEY, ADD PRIMARY KEY ({pk}, {column});
            """.format(pk=', '.join(pk for pk in self.pks), parent_table=self.table, column=self.column_name))
Performs the writing for write()
dataset/ETHPy150Open maxtepkeev/architect/architect/databases/mysql/partition.py/Partition.prepare--crossover with--dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/site-packages/turtle.py/RawTurtle._write