Skip to content

Commit

Permalink
Revert remaining migrations
Browse files Browse the repository at this point in the history
This reverts commit 03abc06.
  • Loading branch information
PseudoResonance committed Jan 9, 2025
1 parent 104826e commit d22244c
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,7 @@ public function up(): void
*/
public function down(): void
{
switch (Schema::getConnection()->getDriverName()) {
case 'sqlite':
case 'mariadb':
case 'mysql':
DB::statement('ALTER TABLE `api_keys` CHANGE `token` `secret` TEXT, DROP INDEX `api_keys_token_unique`');
break;
case 'pgsql':
DB::statement('ALTER TABLE api_keys RENAME COLUMN token TO secret, ALTER COLUMN secret SET DATA TYPE TEXT, DROP CONSTRAINT api_keys_token_unique');
break;
}
DB::statement('ALTER TABLE `api_keys` CHANGE `token` `secret` TEXT, DROP INDEX `api_keys_token_unique`');

Schema::table('api_keys', function (Blueprint $table) {
$table->char('public', 16)->after('user_id');
Expand Down

0 comments on commit d22244c

Please sign in to comment.