mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
2023_02_11_155505_change_tweet_field_to_library_items_table.php
This commit is contained in:
@@ -12,9 +12,11 @@ return new class extends Migration {
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('library_items', function (Blueprint $table) {
|
Schema::table('library_items', function (Blueprint $table) {
|
||||||
$table->boolean('tweet')
|
DB::statement("ALTER TABLE library_items
|
||||||
->default(false)
|
ALTER COLUMN tweet DROP DEFAULT,
|
||||||
->change();
|
ALTER COLUMN tweet TYPE BOOLEAN USING tweet::BOOLEAN,
|
||||||
|
ALTER COLUMN tweet SET DEFAULT FALSE;"
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user