> For the complete documentation index, see [llms.txt](https://developers.polymath.network/polymath/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.polymath.network/polymath/api/migrations.md).

# Migrations.sol

View Source: [contracts/Migrations.sol](https://github.com/PolymathNetwork/polymath-core/tree/096ba240a927c98e1f1a182d2efee7c4c4c1dfc5/contracts/Migrations.sol)

**Migrations**

## Contract Members

**Constants & Variables**

```javascript
address public owner;
uint256 public lastCompletedMigration;
```

## Modifiers

* [restricted](/polymath/api/migrations.md#restricted)

### restricted

```javascript
modifier restricted() internal
```

**Arguments**

| Name | Type | Description |
| ---- | ---- | ----------- |

## Functions

* [()](/polymath/api/migrations.md)
* [setCompleted(uint256 \_completed)](/polymath/api/migrations.md#setcompleted)
* [upgrade(address \_newAddress)](/polymath/api/migrations.md#upgrade)

```javascript
function () public nonpayable
```

**Arguments**

| Name | Type | Description |
| ---- | ---- | ----------- |

### setCompleted

```javascript
function setCompleted(uint256 _completed) public nonpayable restricted
```

**Arguments**

| Name        | Type    | Description |
| ----------- | ------- | ----------- |
| \_completed | uint256 |             |

### upgrade

```javascript
function upgrade(address _newAddress) public nonpayable restricted
```

**Arguments**

| Name         | Type    | Description |
| ------------ | ------- | ----------- |
| \_newAddress | address |             |
