<commit_before>import { MigrationInterface, QueryRunner } from "typeorm"

export class AddGoogleDocsPostTable1659996181316 implements MigrationInterface {
    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`CREATE TABLE \`posts_gdocs\` (
            \`id\` int NOT NULL AUTO_INCREMENT,
            \`slug\` varchar(255) DEFAULT NULL,
            \`content\` json DEFAULT NULL,
            \`published\` tinyint DEFAULT 0 NOT NULL,
            \`documentId\` varchar(255) NULL,
            \`createdAt\` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
            \`updatedAt\` datetime NULL ON UPDATE CURRENT_TIMESTAMP,
            PRIMARY KEY (\`id\`),
            UNIQUE(\`slug\`)<commit_msg>wip(gdocs): use gdoc id as DB id<commit_after>import { MigrationInterface, QueryRunner } from "typeorm"

export class AddGoogleDocsPostTable1659996181316 implements MigrationInterface {
    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`CREATE TABLE \`posts_gdocs\` (
            \`id\` varchar(255) NOT NULL,
            \`slug\` varchar(255) DEFAULT NULL,
            \`content\` json DEFAULT NULL,
            \`published\` tinyint DEFAULT 0 NOT NULL,
            \`createdAt\` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
            \`updatedAt\` datetime NULL ON UPDATE CURRENT_TIMESTAMP,
            PRIMARY KEY (\`id\`),
            UNIQUE(\`slug\`)
{'fraction_non_alphanumeric': 0.10438413361169102, 'fraction_numerical': 0.027835768963117607, 'mean_word_length': 2.640506329113924, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1687054', 'n_tokens_mistral': 450, 'n_tokens_neox': 413, 'n_words': 115}