Skip to content

Commit e6fd63b

Browse files
author
Carl Sverre
committed
added test to answer discussion #53
1 parent 421a569 commit e6fd63b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SingleStore Driver for Laravel <!-- omit in toc -->
22

3-
[![Latest Stable Version](http://poser.pugx.org/singlestoredb/singlestoredb-laravel/v)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![Total Downloads](http://poser.pugx.org/singlestoredb/singlestoredb-laravel/downloads)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![License](http://poser.pugx.org/singlestoredb/singlestoredb-laravel/license)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![PHP Version Require](http://poser.pugx.org/singlestoredb/singlestoredb-laravel/require/php)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![Github Actions status image](https://github.com/singlestore-labs/singlestoredb-laravel-driver/actions/workflows/tests.yml/badge.svg)](https://github.com/singlestore-labs/singlestoredb-laravel-driver/actions)
3+
[![Latest Stable Version](https://poser.pugx.org/singlestoredb/singlestoredb-laravel/v)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![Total Downloads](https://poser.pugx.org/singlestoredb/singlestoredb-laravel/downloads)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![License](https://poser.pugx.org/singlestoredb/singlestoredb-laravel/license)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![PHP Version Require](https://poser.pugx.org/singlestoredb/singlestoredb-laravel/require/php)](https://packagist.org/packages/singlestoredb/singlestoredb-laravel) [![Github Actions status image](https://github.com/singlestore-labs/singlestoredb-laravel-driver/actions/workflows/tests.yml/badge.svg)](https://github.com/singlestore-labs/singlestoredb-laravel-driver/actions)
44

55
This repository contains the official SingleStoreDB Driver for Laravel. This driver wraps the official MySQL support in Laravel in order to make it work nicer with SingleStoreDB. Specifically, this driver provides the following advantages over vanilla Laravel MySQL support:
66

@@ -30,7 +30,7 @@ This repository contains the official SingleStoreDB Driver for Laravel. This dri
3030
- [Series Timestamps](#series-timestamps)
3131
- [Computed Columns](#computed-columns)
3232
- [Increment Columns without Primary Key](#increment-columns-without-primary-key)
33-
- [Full-text search](#full-text-search-using-fulltext-indexes)
33+
- [Full-text search using FULLTEXT indexes](#full-text-search-using-fulltext-indexes)
3434
- [Testing](#testing)
3535
- [License](#license)
3636
- [Resources](#resources)

tests/Hybrid/CreateTable/MiscCreateTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,23 @@ public function medium_integer_id()
5454
'create table `test` (`id` mediumint unsigned not null auto_increment primary key)'
5555
);
5656
}
57+
58+
/** @test */
59+
public function discussion_53()
60+
{
61+
$blueprint = $this->createTable(function (Blueprint $table) {
62+
$table->bigIncrements('id')->withoutPrimaryKey()->index();
63+
$table->unsignedBigInteger('user_id')->shardKey();
64+
$table->string('template_id');
65+
$table->longText('data');
66+
$table->string('response_status_code');
67+
$table->longText('response_message');
68+
$table->timestamps();
69+
});
70+
71+
$this->assertCreateStatement(
72+
$blueprint,
73+
'create table `test` (`id` bigint unsigned not null auto_increment, `user_id` bigint unsigned not null, `template_id` varchar(255) not null, `data` longtext not null, `response_status_code` varchar(255) not null, `response_message` longtext not null, `created_at` timestamp null, `updated_at` timestamp null, index `test_id_index`(`id`), shard key(`user_id`))'
74+
);
75+
}
5776
}

0 commit comments

Comments
 (0)