public function createTables() {
		try {
			$this->client->createTable(
				[
					'TableName'             => 'wpsnapshots-' . $this->repository,
					'AttributeDefinitions'  => [
						[
							'AttributeName' => 'id',
							'AttributeType' => 'S',
						],
					],
					'KeySchema'             => [
						[
							'AttributeName' => 'id',
							'KeyType'       => 'HASH',
						],
					],
					'ProvisionedThroughput' => [
						'ReadCapacityUnits'  => 10,
						'WriteCapacityUnits' => 20,
					],
				]
			);

			$this->client->waitUntil(
				'TableExists', [
					'TableName' => 'wpsnapshots-' . $this->repository,
				]
			);
		} catch ( \Exception $e ) {
			Log::instance()->write( 'Error Message: ' . $e->getMessage(), 1, 'error' );
			Log::instance()->write( 'AWS Request ID: ' . $e->getAwsRequestId(), 1, 'error' );
			Log::instance()->write( 'AWS Error Type: ' . $e->getAwsErrorType(), 1, 'error' );
			Log::instance()->write( 'AWS Error Code: ' . $e->getAwsErrorCode(), 1, 'error' );

			return $e->getAwsErrorCode();
		}

		return true;
	}
public function createTables() {
		try {
			$this->client->createTable(
				[
					'TableName'             => 'wpsnapshots-' . $this->repository,
					'AttributeDefinitions'  => [
						[
							'AttributeName' => 'id',
							'AttributeType' => 'S',
						],
					],
					'KeySchema'             => [
						[
							'AttributeName' => 'id',
							'KeyType'       => 'HASH',
						],
					],
					'ProvisionedThroughput' => [
						'ReadCapacityUnits'  => 10,
						'WriteCapacityUnits' => 20,
					],
				]
			);

			$this->client->waitUntil(
				'TableExists', [
					'TableName' => 'wpsnapshots-' . $this->repository,
				]
			);
		} catch ( \Exception $e ) {
			Log::instance()->write( 'Error Message: ' . $e->getMessage(), 1, 'error' );
			Log::instance()->write( 'AWS Request ID: ' . $e->getAwsRequestId(), 1, 'error' );
			Log::instance()->write( 'AWS Error Type: ' . $e->getAwsErrorType(), 1, 'error' );
			Log::instance()->write( 'AWS Error Code: ' . $e->getAwsErrorCode(), 1, 'error' );

			return $e->getAwsErrorCode();
		}

		return true;
	}
public function createTables ( ) { try { $ this -> client -> createTable ( [ 'TableName' => 'wpsnapshots-' . $ this -> repository , 'AttributeDefinitions' => [ [ 'AttributeName' => 'id' , 'AttributeType' => 'S' , ] , ] , 'KeySchema' => [ [ 'AttributeName' => 'id' , 'KeyType' => 'HASH' , ] , ] , 'ProvisionedThroughput' => [ 'ReadCapacityUnits' => 10 , 'WriteCapacityUnits' => 20 , ] , ] ) ; $ this -> client -> waitUntil ( 'TableExists' , [ 'TableName' => 'wpsnapshots-' . $ this -> repository , ] ) ; } catch ( \ Exception $ e ) { Log :: instance ( ) -> write ( 'Error Message: ' . $ e -> getMessage ( ) , 1 , 'error' ) ; Log :: instance ( ) -> write ( 'AWS Request ID: ' . $ e -> getAwsRequestId ( ) , 1 , 'error' ) ; Log :: instance ( ) -> write ( 'AWS Error Type: ' . $ e -> getAwsErrorType ( ) , 1 , 'error' ) ; Log :: instance ( ) -> write ( 'AWS Error Code: ' . $ e -> getAwsErrorCode ( ) , 1 , 'error' ) ; return $ e -> getAwsErrorCode ( ) ; } return true ; }
Create default DB tables. Only need to do this once ever for repo setup.

@return bool
Create default DB tables . Only need to do this once ever for repo setup .