Updates an existing view.
Update-View [-Name] <String> [-SchemaName <String>] [-Definition] <String> [<CommonParameters>]
Updates an existing view.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name of the view. |
true | false | |
SchemaName | String | The schema name of the view. Defaults to |
false | false | dbo |
Definition | String | The definition of the view. Everything after the |
true | false |
Update-View -SchemaName 'rivet' 'ReadMigrations' 'AS select * from rivet.Migrations'
Updates a view to read all the migrations from Rivet's Migrations table. Don't do this in real life.