Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Non-default schema names #50019

Merged
merged 37 commits into from
Feb 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
212127f
wip
hafezdivandari Feb 8, 2024
b01993a
wip
hafezdivandari Feb 8, 2024
5058860
wip
hafezdivandari Feb 8, 2024
9ac3fb3
wip
hafezdivandari Feb 9, 2024
776b1ae
wip
hafezdivandari Feb 9, 2024
286b99a
wip
hafezdivandari Feb 9, 2024
e8f6093
wip
hafezdivandari Feb 9, 2024
e7ce3de
wip
hafezdivandari Feb 9, 2024
64ea7a5
wip
hafezdivandari Feb 9, 2024
a5e2193
wip
hafezdivandari Feb 9, 2024
8c76019
wip
hafezdivandari Feb 9, 2024
66aa508
fix rename table on sqlsrv
hafezdivandari Feb 9, 2024
8c9e0f6
wip
hafezdivandari Feb 9, 2024
81cd454
wip
hafezdivandari Feb 9, 2024
b77c040
fix rename column and rename index on sqlsrv
hafezdivandari Feb 9, 2024
09e176c
fix drop primary on pgsql
hafezdivandari Feb 9, 2024
c69042c
wip
hafezdivandari Feb 9, 2024
2a1936f
wip
hafezdivandari Feb 9, 2024
63d2c79
wip
hafezdivandari Feb 9, 2024
5b07077
wip
hafezdivandari Feb 9, 2024
b0722d6
wip
hafezdivandari Feb 9, 2024
94bdf84
wip
hafezdivandari Feb 9, 2024
5111fb6
enable prefix tests
hafezdivandari Feb 9, 2024
69530df
wip
hafezdivandari Feb 9, 2024
824912b
wip
hafezdivandari Feb 9, 2024
e3fe035
fix prefix auto-increment starting value on pgsql
hafezdivandari Feb 9, 2024
9194374
use blueprint prefix on sqlite
hafezdivandari Feb 9, 2024
3a60b92
use wrapTable where ever possible
hafezdivandari Feb 9, 2024
364c6ff
wip
hafezdivandari Feb 9, 2024
9e528e0
wip
hafezdivandari Feb 9, 2024
441c4a0
fix index name with schema name+prefix
hafezdivandari Feb 9, 2024
4b6e567
fix schema name+prefix
hafezdivandari Feb 9, 2024
1304592
wip
hafezdivandari Feb 9, 2024
b60cb3c
fix wrapping table
hafezdivandari Feb 10, 2024
5154f04
fix auto-increment starting value on pgsql
hafezdivandari Feb 10, 2024
fc6f981
wip
hafezdivandari Feb 10, 2024
81d1be5
fix tests
hafezdivandari Feb 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
hafezdivandari committed Feb 8, 2024
commit b01993abcfd89c54eb84d81de2d10279fe863711
160 changes: 0 additions & 160 deletions .github/workflows/queues.yml

This file was deleted.

169 changes: 0 additions & 169 deletions .github/workflows/tests.yml

This file was deleted.

12 changes: 7 additions & 5 deletions tests/Integration/Database/SchemaBuilderSchemaNameTest.php
Original file line number Diff line number Diff line change
@@ -33,9 +33,11 @@ protected function defineEnvironment($app)
$this->app['config']->set('database.connections.with-prefix.prefix', 'example_');
}

#[DataProvider('schemaProvider')]
public function testCreate(Builder $schema)
#[DataProvider('connectionProvider')]
public function testCreate($connection)
{
$schema = Schema::connection($connection);

$schema->create('my_schema.table', function (Blueprint $table) {
$table->id();
});
@@ -46,11 +48,11 @@ public function testCreate(Builder $schema)
$this->assertFalse($schema->hasTable('table'));
}

public static function schemaProvider(): array
public static function connectionProvider(): array
{
return [
'without prefix' => [Schema::connection('without-prefix')],
'with prefix' => [Schema::connection('with-prefix')]
'without prefix' => ['without-prefix'],
'with prefix' => ['with-prefix'],
];
}
}