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()
|
||||
{
|
||||
Schema::table('library_items', function (Blueprint $table) {
|
||||
$table->boolean('tweet')
|
||||
->default(false)
|
||||
->change();
|
||||
DB::statement("ALTER TABLE library_items
|
||||
ALTER COLUMN tweet DROP DEFAULT,
|
||||
ALTER COLUMN tweet TYPE BOOLEAN USING tweet::BOOLEAN,
|
||||
ALTER COLUMN tweet SET DEFAULT FALSE;"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user