def create(self):
        return self.database.execute("""
            ALTER TABLE {parent_table} ADD PARTITION (
                PARTITION {child_table} VALUES LESS THAN ({function}('{period_end}') + {addition})
            );
        """.format(
            child_table=self._get_name(),
            parent_table=self.table,
            function=self._get_function(),
            period_end=self.datetime.get_period(self.constraint)[1],
            addition='86400' if self._get_column_type() == 'timestamp' else '1'
        ))
Creates new partition.
dataset/ETHPy150Open maxtepkeev/architect/architect/databases/mysql/partition.py/RangePartition.create