createTable('open_local_editor'); $table->addColumn('id', Types::BIGINT, [ 'autoincrement' => true, 'notnull' => true, 'length' => 20, 'unsigned' => true, ]); $table->addColumn('user_id', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('path_hash', Types::STRING, [ 'notnull' => true, 'length' => 64, ]); $table->addColumn('expiration_time', Types::BIGINT, [ 'notnull' => true, 'unsigned' => true, ]); $table->addColumn('token', Types::STRING, [ 'notnull' => true, 'length' => 128, ]); $table->setPrimaryKey(['id']); $table->addUniqueIndex(['user_id', 'path_hash', 'token'], 'openlocal_user_path_token'); return $schema; } }